# frozen_string_literal: true # #Kubernetes # # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # # The version of the OpenAPI document: unversioned # # Generated by: https://openapi-generator.tech # OpenAPI Generator version: 6.5.0-SNAPSHOT # require 'cgi' module Zilla class CoreV1Api attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end # connect DELETE requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_delete_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_delete_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect DELETE requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect DELETE requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_delete_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect DELETE requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect DELETE requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_delete_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_delete_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect DELETE requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_delete_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect DELETE requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_delete_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect DELETE requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_delete_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_delete_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect DELETE requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_delete_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_delete_node_proxy_with_http_info(name, opts) data end # connect DELETE requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect DELETE requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_delete_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_delete_node_proxy_with_path_with_http_info(name, path, opts) data end # connect DELETE requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_delete_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_delete_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_delete_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_delete_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_delete_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_delete_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to attach of Pod # @param name [String] name of the PodAttachOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. # @return [String] def connect_core_v1_get_namespaced_pod_attach(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_pod_attach_with_http_info(name, namespace, opts) data end # connect GET requests to attach of Pod # @param name [String] name of the PodAttachOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_pod_attach_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_pod_attach ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_attach" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_attach" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:container] = opts[:container] unless opts[:container].nil? query_params[:stderr] = opts[:stderr] unless opts[:stderr].nil? query_params[:stdin] = opts[:stdin] unless opts[:stdin].nil? query_params[:stdout] = opts[:stdout] unless opts[:stdout].nil? query_params[:tty] = opts[:tty] unless opts[:tty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_pod_attach', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_pod_attach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to exec of Pod # @param name [String] name of the PodExecOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :command Command is the remote command to execute. argv array. Not executed within a shell. # @option opts [String] :container Container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Redirect the standard error stream of the pod for this call. # @option opts [Boolean] :stdin Redirect the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Redirect the standard output stream of the pod for this call. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. # @return [String] def connect_core_v1_get_namespaced_pod_exec(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_pod_exec_with_http_info(name, namespace, opts) data end # connect GET requests to exec of Pod # @param name [String] name of the PodExecOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :command Command is the remote command to execute. argv array. Not executed within a shell. # @option opts [String] :container Container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Redirect the standard error stream of the pod for this call. # @option opts [Boolean] :stdin Redirect the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Redirect the standard output stream of the pod for this call. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_pod_exec_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_pod_exec ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_exec" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_exec" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:command] = opts[:command] unless opts[:command].nil? query_params[:container] = opts[:container] unless opts[:container].nil? query_params[:stderr] = opts[:stderr] unless opts[:stderr].nil? query_params[:stdin] = opts[:stdin] unless opts[:stdin].nil? query_params[:stdout] = opts[:stdout] unless opts[:stdout].nil? query_params[:tty] = opts[:tty] unless opts[:tty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_pod_exec', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_pod_exec\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to portforward of Pod # @param name [String] name of the PodPortForwardOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Integer] :ports List of ports to forward Required when using WebSockets # @return [String] def connect_core_v1_get_namespaced_pod_portforward(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_pod_portforward_with_http_info(name, namespace, opts) data end # connect GET requests to portforward of Pod # @param name [String] name of the PodPortForwardOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Integer] :ports List of ports to forward Required when using WebSockets # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_pod_portforward_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_pod_portforward ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_portforward" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_portforward" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:ports] = opts[:ports] unless opts[:ports].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_pod_portforward', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_pod_portforward\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_get_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect GET requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_get_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect GET requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_get_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_get_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect GET requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_get_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect GET requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_get_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_get_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_get_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_get_node_proxy_with_http_info(name, opts) data end # connect GET requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect GET requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_get_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_get_node_proxy_with_path_with_http_info(name, path, opts) data end # connect GET requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_get_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_get_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_get_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_get_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_get_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#connect_core_v1_get_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_head_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_head_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect HEAD requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_head_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_head_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect HEAD requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_head_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_head_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_head_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_head_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect HEAD requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_head_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_head_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect HEAD requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_head_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_head_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_head_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_head_node_proxy_with_http_info(name, opts) data end # connect HEAD requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect HEAD requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_head_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_head_node_proxy_with_path_with_http_info(name, path, opts) data end # connect HEAD requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_head_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_head_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_head_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_head_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_head_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_head_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_options_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_options_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect OPTIONS requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_options_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_options_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect OPTIONS requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_options_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_options_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_options_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_options_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect OPTIONS requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_options_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_options_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect OPTIONS requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_options_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_options_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_options_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_options_node_proxy_with_http_info(name, opts) data end # connect OPTIONS requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect OPTIONS requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_options_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_options_node_proxy_with_path_with_http_info(name, path, opts) data end # connect OPTIONS requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_options_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_options_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_options_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_options_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_options_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:OPTIONS, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_options_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_patch_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_patch_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect PATCH requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_patch_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect PATCH requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_patch_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_patch_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect PATCH requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_patch_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_patch_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect PATCH requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_patch_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_patch_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_patch_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_patch_node_proxy_with_http_info(name, opts) data end # connect PATCH requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PATCH requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_patch_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_patch_node_proxy_with_path_with_http_info(name, path, opts) data end # connect PATCH requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_patch_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_patch_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_patch_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_patch_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_patch_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_patch_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to attach of Pod # @param name [String] name of the PodAttachOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. # @return [String] def connect_core_v1_post_namespaced_pod_attach(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_pod_attach_with_http_info(name, namespace, opts) data end # connect POST requests to attach of Pod # @param name [String] name of the PodAttachOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_pod_attach_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_pod_attach ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_attach" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_attach" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/attach'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:container] = opts[:container] unless opts[:container].nil? query_params[:stderr] = opts[:stderr] unless opts[:stderr].nil? query_params[:stdin] = opts[:stdin] unless opts[:stdin].nil? query_params[:stdout] = opts[:stdout] unless opts[:stdout].nil? query_params[:tty] = opts[:tty] unless opts[:tty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_pod_attach', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_pod_attach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to exec of Pod # @param name [String] name of the PodExecOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :command Command is the remote command to execute. argv array. Not executed within a shell. # @option opts [String] :container Container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Redirect the standard error stream of the pod for this call. # @option opts [Boolean] :stdin Redirect the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Redirect the standard output stream of the pod for this call. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. # @return [String] def connect_core_v1_post_namespaced_pod_exec(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_pod_exec_with_http_info(name, namespace, opts) data end # connect POST requests to exec of Pod # @param name [String] name of the PodExecOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :command Command is the remote command to execute. argv array. Not executed within a shell. # @option opts [String] :container Container in which to execute the command. Defaults to only container if there is only one container in the pod. # @option opts [Boolean] :stderr Redirect the standard error stream of the pod for this call. # @option opts [Boolean] :stdin Redirect the standard input stream of the pod for this call. Defaults to false. # @option opts [Boolean] :stdout Redirect the standard output stream of the pod for this call. # @option opts [Boolean] :tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_pod_exec_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_pod_exec ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_exec" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_exec" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/exec'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:command] = opts[:command] unless opts[:command].nil? query_params[:container] = opts[:container] unless opts[:container].nil? query_params[:stderr] = opts[:stderr] unless opts[:stderr].nil? query_params[:stdin] = opts[:stdin] unless opts[:stdin].nil? query_params[:stdout] = opts[:stdout] unless opts[:stdout].nil? query_params[:tty] = opts[:tty] unless opts[:tty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_pod_exec', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_pod_exec\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to portforward of Pod # @param name [String] name of the PodPortForwardOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Integer] :ports List of ports to forward Required when using WebSockets # @return [String] def connect_core_v1_post_namespaced_pod_portforward(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_pod_portforward_with_http_info(name, namespace, opts) data end # connect POST requests to portforward of Pod # @param name [String] name of the PodPortForwardOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Integer] :ports List of ports to forward Required when using WebSockets # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_pod_portforward_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_pod_portforward ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_portforward" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_portforward" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/portforward'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:ports] = opts[:ports] unless opts[:ports].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_pod_portforward', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_pod_portforward\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_post_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect POST requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_post_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect POST requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_post_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_post_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect POST requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_post_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect POST requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_post_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_post_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_post_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_post_node_proxy_with_http_info(name, opts) data end # connect POST requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect POST requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_post_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_post_node_proxy_with_path_with_http_info(name, path, opts) data end # connect POST requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_post_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_post_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_post_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_post_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_post_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_post_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_put_namespaced_pod_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_put_namespaced_pod_proxy_with_http_info(name, namespace, opts) data end # connect PUT requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_namespaced_pod_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_namespaced_pod_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_namespaced_pod_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_put_namespaced_pod_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_namespaced_pod_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_namespaced_pod_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [String] def connect_core_v1_put_namespaced_pod_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect PUT requests to proxy of Pod # @param name [String] name of the PodProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to pod. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_namespaced_pod_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_namespaced_pod_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_put_namespaced_pod_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_put_namespaced_pod_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_namespaced_pod_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_namespaced_pod_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_put_namespaced_service_proxy(name, namespace, opts = {}) data, _status_code, _headers = connect_core_v1_put_namespaced_service_proxy_with_http_info(name, namespace, opts) data end # connect PUT requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_namespaced_service_proxy_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_namespaced_service_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_namespaced_service_proxy" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_put_namespaced_service_proxy" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_namespaced_service_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_namespaced_service_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [String] def connect_core_v1_put_namespaced_service_proxy_with_path(name, namespace, path, opts = {}) data, _status_code, _headers = connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts) data end # connect PUT requests to proxy of Service # @param name [String] name of the ServiceProxyOptions # @param namespace [String] object name and auth scope, such as for teams and projects # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_namespaced_service_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_namespaced_service_proxy_with_path" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.connect_core_v1_put_namespaced_service_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_put_namespaced_service_proxy_with_path" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub('{namespace}', CGI.escape(namespace.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_namespaced_service_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_namespaced_service_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_put_node_proxy(name, opts = {}) data, _status_code, _headers = connect_core_v1_put_node_proxy_with_http_info(name, opts) data end # connect PUT requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param [Hash] opts the optional parameters # @option opts [String] :path Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_node_proxy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_node_proxy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_node_proxy" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path] unless opts[:path].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_node_proxy', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_node_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # connect PUT requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [String] def connect_core_v1_put_node_proxy_with_path(name, path, opts = {}) data, _status_code, _headers = connect_core_v1_put_node_proxy_with_path_with_http_info(name, path, opts) data end # connect PUT requests to proxy of Node # @param name [String] name of the NodeProxyOptions # @param path [String] path to the resource # @param [Hash] opts the optional parameters # @option opts [String] :path2 Path is the URL path to use for the current proxy request to node. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def connect_core_v1_put_node_proxy_with_path_with_http_info(name, path, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.connect_core_v1_put_node_proxy_with_path ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.connect_core_v1_put_node_proxy_with_path" end # verify the required parameter 'path' is set if @api_client.config.client_side_validation && path.nil? raise ArgumentError, "Missing the required parameter 'path' when calling CoreV1Api.connect_core_v1_put_node_proxy_with_path" end # resource path local_var_path = '/api/v1/nodes/{name}/proxy/{path}'.sub('{name}', CGI.escape(name.to_s)).sub( '{path}', CGI.escape(path.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:path] = opts[:path2] unless opts[:path2].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.connect_core_v1_put_node_proxy_with_path', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#connect_core_v1_put_node_proxy_with_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Namespace] def create_core_v1_namespace(body, opts = {}) data, _status_code, _headers = create_core_v1_namespace_with_http_info(body, opts) data end # create a Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def create_core_v1_namespace_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespace ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespace" end # resource path local_var_path = '/api/v1/namespaces' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Binding # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Binding] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Binding] def create_core_v1_namespaced_binding(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_binding_with_http_info(namespace, body, opts) data end # create a Binding # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Binding] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Binding, Integer, Hash)>] IoK8sApiCoreV1Binding data, response status code and response headers def create_core_v1_namespaced_binding_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_binding ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_binding" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_binding" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/bindings'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Binding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_binding', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ConfigMap] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ConfigMap] def create_core_v1_namespaced_config_map(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_config_map_with_http_info(namespace, body, opts) data end # create a ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ConfigMap] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ConfigMap, Integer, Hash)>] IoK8sApiCoreV1ConfigMap data, response status code and response headers def create_core_v1_namespaced_config_map_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_config_map ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_config_map" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMap' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Endpoints] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Endpoints] def create_core_v1_namespaced_endpoints(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_endpoints_with_http_info(namespace, body, opts) data end # create Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Endpoints] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Endpoints, Integer, Hash)>] IoK8sApiCoreV1Endpoints data, response status code and response headers def create_core_v1_namespaced_endpoints_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_endpoints ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_endpoints" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Endpoints' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create an Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Event] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Event] def create_core_v1_namespaced_event(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_event_with_http_info(namespace, body, opts) data end # create an Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Event] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Event, Integer, Hash)>] IoK8sApiCoreV1Event data, response status code and response headers def create_core_v1_namespaced_event_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_event ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_event" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Event' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1LimitRange] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1LimitRange] def create_core_v1_namespaced_limit_range(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_limit_range_with_http_info(namespace, body, opts) data end # create a LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1LimitRange] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1LimitRange, Integer, Hash)>] IoK8sApiCoreV1LimitRange data, response status code and response headers def create_core_v1_namespaced_limit_range_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_limit_range ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_limit_range" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRange' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def create_core_v1_namespaced_persistent_volume_claim(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, body, opts) data end # create a PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def create_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Pod] def create_core_v1_namespaced_pod(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_pod_with_http_info(namespace, body, opts) data end # create a Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def create_core_v1_namespaced_pod_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_pod ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_pod" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create binding of a Pod # @param name [String] name of the Binding # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Binding] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Binding] def create_core_v1_namespaced_pod_binding(name, namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_pod_binding_with_http_info(name, namespace, body, opts) data end # create binding of a Pod # @param name [String] name of the Binding # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Binding] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Binding, Integer, Hash)>] IoK8sApiCoreV1Binding data, response status code and response headers def create_core_v1_namespaced_pod_binding_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_pod_binding ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.create_core_v1_namespaced_pod_binding" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_pod_binding" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_pod_binding" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/binding'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Binding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_pod_binding', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_pod_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create eviction of a Pod # @param name [String] name of the Eviction # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiPolicyV1Eviction] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiPolicyV1Eviction] def create_core_v1_namespaced_pod_eviction(name, namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_pod_eviction_with_http_info(name, namespace, body, opts) data end # create eviction of a Pod # @param name [String] name of the Eviction # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiPolicyV1Eviction] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiPolicyV1Eviction, Integer, Hash)>] IoK8sApiPolicyV1Eviction data, response status code and response headers def create_core_v1_namespaced_pod_eviction_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_pod_eviction ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.create_core_v1_namespaced_pod_eviction" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_pod_eviction" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_pod_eviction" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/eviction'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1Eviction' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_pod_eviction', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_pod_eviction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PodTemplate] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PodTemplate] def create_core_v1_namespaced_pod_template(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_pod_template_with_http_info(namespace, body, opts) data end # create a PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PodTemplate] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PodTemplate, Integer, Hash)>] IoK8sApiCoreV1PodTemplate data, response status code and response headers def create_core_v1_namespaced_pod_template_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_pod_template ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_pod_template" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ReplicationController] def create_core_v1_namespaced_replication_controller(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_replication_controller_with_http_info(namespace, body, opts) data end # create a ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def create_core_v1_namespaced_replication_controller_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_replication_controller" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ResourceQuota] def create_core_v1_namespaced_resource_quota(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_resource_quota_with_http_info(namespace, body, opts) data end # create a ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def create_core_v1_namespaced_resource_quota_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_resource_quota" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Secret] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Secret] def create_core_v1_namespaced_secret(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_secret_with_http_info(namespace, body, opts) data end # create a Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Secret] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Secret, Integer, Hash)>] IoK8sApiCoreV1Secret data, response status code and response headers def create_core_v1_namespaced_secret_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_secret ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_secret" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Secret' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Service] def create_core_v1_namespaced_service(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_service_with_http_info(namespace, body, opts) data end # create a Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def create_core_v1_namespaced_service_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_service ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_service" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ServiceAccount] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ServiceAccount] def create_core_v1_namespaced_service_account(namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_service_account_with_http_info(namespace, body, opts) data end # create a ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ServiceAccount] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ServiceAccount, Integer, Hash)>] IoK8sApiCoreV1ServiceAccount data, response status code and response headers def create_core_v1_namespaced_service_account_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_service_account ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_service_account" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccount' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create token of a ServiceAccount # @param name [String] name of the TokenRequest # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiAuthenticationV1TokenRequest] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiAuthenticationV1TokenRequest] def create_core_v1_namespaced_service_account_token(name, namespace, body, opts = {}) data, _status_code, _headers = create_core_v1_namespaced_service_account_token_with_http_info(name, namespace, body, opts) data end # create token of a ServiceAccount # @param name [String] name of the TokenRequest # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiAuthenticationV1TokenRequest] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiAuthenticationV1TokenRequest, Integer, Hash)>] IoK8sApiAuthenticationV1TokenRequest data, response status code and response headers def create_core_v1_namespaced_service_account_token_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_namespaced_service_account_token ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.create_core_v1_namespaced_service_account_token" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.create_core_v1_namespaced_service_account_token" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_namespaced_service_account_token" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}/token'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiAuthenticationV1TokenRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_namespaced_service_account_token', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_namespaced_service_account_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Node] def create_core_v1_node(body, opts = {}) data, _status_code, _headers = create_core_v1_node_with_http_info(body, opts) data end # create a Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def create_core_v1_node_with_http_info(body, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_node" end # resource path local_var_path = '/api/v1/nodes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # create a PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolume] def create_core_v1_persistent_volume(body, opts = {}) data, _status_code, _headers = create_core_v1_persistent_volume_with_http_info(body, opts) data end # create a PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def create_core_v1_persistent_volume_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.create_core_v1_persistent_volume ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.create_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/persistentvolumes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.create_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#create_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_config_map(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_config_map_with_http_info(namespace, opts) data end # delete collection of ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_config_map_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_config_map ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_endpoints(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_endpoints_with_http_info(namespace, opts) data end # delete collection of Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_endpoints_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_endpoints ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_event(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_event_with_http_info(namespace, opts) data end # delete collection of Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_event_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_event ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_limit_range(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_limit_range_with_http_info(namespace, opts) data end # delete collection of LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_limit_range_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_limit_range ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_persistent_volume_claim(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info( namespace, opts ) data end # delete collection of PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_persistent_volume_claim_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_persistent_volume_claim ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_pod(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_pod_with_http_info(namespace, opts) data end # delete collection of Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_pod_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_pod ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_pod_template(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_pod_template_with_http_info(namespace, opts) data end # delete collection of PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_pod_template_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_pod_template ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_replication_controller(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_replication_controller_with_http_info( namespace, opts ) data end # delete collection of ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_replication_controller_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_replication_controller ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_resource_quota(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_resource_quota_with_http_info(namespace, opts) data end # delete collection of ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_resource_quota_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_resource_quota ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_secret(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_secret_with_http_info(namespace, opts) data end # delete collection of Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_secret_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_secret ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_service(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_service_with_http_info(namespace, opts) data end # delete collection of Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_service_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_service ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_namespaced_service_account(namespace, opts = {}) data, _status_code, _headers = delete_core_v1_collection_namespaced_service_account_with_http_info(namespace, opts) data end # delete collection of ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_namespaced_service_account_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_namespaced_service_account ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_collection_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_node(opts = {}) data, _status_code, _headers = delete_core_v1_collection_node_with_http_info(opts) data end # delete collection of Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_node_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_node ...' end # resource path local_var_path = '/api/v1/nodes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete collection of PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_collection_persistent_volume(opts = {}) data, _status_code, _headers = delete_core_v1_collection_persistent_volume_with_http_info(opts) data end # delete collection of PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_collection_persistent_volume_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_collection_persistent_volume ...' end # resource path local_var_path = '/api/v1/persistentvolumes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_collection_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_collection_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespace(name, opts = {}) data, _status_code, _headers = delete_core_v1_namespace_with_http_info(name, opts) data end # delete a Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespace_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespace ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespace" end # resource path local_var_path = '/api/v1/namespaces/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_config_map(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_config_map_with_http_info(name, namespace, opts) data end # delete a ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_config_map_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_config_map ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_config_map" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_endpoints(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts) data end # delete Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_endpoints ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_endpoints" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete an Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_event(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_event_with_http_info(name, namespace, opts) data end # delete an Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_event_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_event ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_event" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_limit_range(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts) data end # delete a LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_limit_range ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_limit_range" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1PersistentVolumeClaim] def delete_core_v1_namespaced_persistent_volume_claim(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts) data end # delete a PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def delete_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1Pod] def delete_core_v1_namespaced_pod(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_pod_with_http_info(name, namespace, opts) data end # delete a Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def delete_core_v1_namespaced_pod_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_pod ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_pod" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1PodTemplate] def delete_core_v1_namespaced_pod_template(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts) data end # delete a PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1PodTemplate, Integer, Hash)>] IoK8sApiCoreV1PodTemplate data, response status code and response headers def delete_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_pod_template ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_pod_template" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_replication_controller(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts) data end # delete a ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_replication_controller" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1ResourceQuota] def delete_core_v1_namespaced_resource_quota(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts) data end # delete a ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def delete_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_resource_quota" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_namespaced_secret(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_secret_with_http_info(name, namespace, opts) data end # delete a Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_namespaced_secret_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_secret ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_secret" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1Service] def delete_core_v1_namespaced_service(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_service_with_http_info(name, namespace, opts) data end # delete a Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def delete_core_v1_namespaced_service_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_service ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_service" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1ServiceAccount] def delete_core_v1_namespaced_service_account(name, namespace, opts = {}) data, _status_code, _headers = delete_core_v1_namespaced_service_account_with_http_info(name, namespace, opts) data end # delete a ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1ServiceAccount, Integer, Hash)>] IoK8sApiCoreV1ServiceAccount data, response status code and response headers def delete_core_v1_namespaced_service_account_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_namespaced_service_account ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_namespaced_service_account" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.delete_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccount' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApimachineryPkgApisMetaV1Status] def delete_core_v1_node(name, opts = {}) data, _status_code, _headers = delete_core_v1_node_with_http_info(name, opts) data end # delete a Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers def delete_core_v1_node_with_http_info(name, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_node" end # resource path local_var_path = '/api/v1/nodes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # delete a PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [IoK8sApiCoreV1PersistentVolume] def delete_core_v1_persistent_volume(name, opts = {}) data, _status_code, _headers = delete_core_v1_persistent_volume_with_http_info(name, opts) data end # delete a PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def delete_core_v1_persistent_volume_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.delete_core_v1_persistent_volume ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.delete_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil? query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil? query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body]) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.delete_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#delete_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # get available resources # @param [Hash] opts the optional parameters # @return [IoK8sApimachineryPkgApisMetaV1APIResourceList] def get_core_v1_api_resources(opts = {}) data, _status_code, _headers = get_core_v1_api_resources_with_http_info(opts) data end # get available resources # @param [Hash] opts the optional parameters # @return [Array<(IoK8sApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers def get_core_v1_api_resources_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.get_core_v1_api_resources ...' end # resource path local_var_path = '/api/v1/' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1APIResourceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.get_core_v1_api_resources', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#get_core_v1_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list objects of kind ComponentStatus # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ComponentStatusList] def list_core_v1_component_status(opts = {}) data, _status_code, _headers = list_core_v1_component_status_with_http_info(opts) data end # list objects of kind ComponentStatus # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ComponentStatusList, Integer, Hash)>] IoK8sApiCoreV1ComponentStatusList data, response status code and response headers def list_core_v1_component_status_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_component_status ...' end # resource path local_var_path = '/api/v1/componentstatuses' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ComponentStatusList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_component_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_component_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ConfigMap # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ConfigMapList] def list_core_v1_config_map_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_config_map_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind ConfigMap # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ConfigMapList, Integer, Hash)>] IoK8sApiCoreV1ConfigMapList data, response status code and response headers def list_core_v1_config_map_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_config_map_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/configmaps' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMapList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_config_map_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_config_map_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Endpoints # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1EndpointsList] def list_core_v1_endpoints_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_endpoints_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind Endpoints # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1EndpointsList, Integer, Hash)>] IoK8sApiCoreV1EndpointsList data, response status code and response headers def list_core_v1_endpoints_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_endpoints_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/endpoints' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1EndpointsList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_endpoints_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_endpoints_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Event # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1EventList] def list_core_v1_event_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_event_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind Event # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1EventList, Integer, Hash)>] IoK8sApiCoreV1EventList data, response status code and response headers def list_core_v1_event_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_event_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/events' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1EventList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_event_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_event_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind LimitRange # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1LimitRangeList] def list_core_v1_limit_range_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_limit_range_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind LimitRange # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1LimitRangeList, Integer, Hash)>] IoK8sApiCoreV1LimitRangeList data, response status code and response headers def list_core_v1_limit_range_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_limit_range_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/limitranges' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRangeList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_limit_range_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_limit_range_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1NamespaceList] def list_core_v1_namespace(opts = {}) data, _status_code, _headers = list_core_v1_namespace_with_http_info(opts) data end # list or watch objects of kind Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1NamespaceList, Integer, Hash)>] IoK8sApiCoreV1NamespaceList data, response status code and response headers def list_core_v1_namespace_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespace ...' end # resource path local_var_path = '/api/v1/namespaces' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1NamespaceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ConfigMapList] def list_core_v1_namespaced_config_map(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_config_map_with_http_info(namespace, opts) data end # list or watch objects of kind ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ConfigMapList, Integer, Hash)>] IoK8sApiCoreV1ConfigMapList data, response status code and response headers def list_core_v1_namespaced_config_map_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_config_map ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMapList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1EndpointsList] def list_core_v1_namespaced_endpoints(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_endpoints_with_http_info(namespace, opts) data end # list or watch objects of kind Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1EndpointsList, Integer, Hash)>] IoK8sApiCoreV1EndpointsList data, response status code and response headers def list_core_v1_namespaced_endpoints_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_endpoints ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1EndpointsList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1EventList] def list_core_v1_namespaced_event(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_event_with_http_info(namespace, opts) data end # list or watch objects of kind Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1EventList, Integer, Hash)>] IoK8sApiCoreV1EventList data, response status code and response headers def list_core_v1_namespaced_event_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_event ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1EventList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1LimitRangeList] def list_core_v1_namespaced_limit_range(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_limit_range_with_http_info(namespace, opts) data end # list or watch objects of kind LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1LimitRangeList, Integer, Hash)>] IoK8sApiCoreV1LimitRangeList data, response status code and response headers def list_core_v1_namespaced_limit_range_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_limit_range ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRangeList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PersistentVolumeClaimList] def list_core_v1_namespaced_persistent_volume_claim(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, opts) data end # list or watch objects of kind PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaimList, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaimList data, response status code and response headers def list_core_v1_namespaced_persistent_volume_claim_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaimList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PodList] def list_core_v1_namespaced_pod(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_pod_with_http_info(namespace, opts) data end # list or watch objects of kind Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PodList, Integer, Hash)>] IoK8sApiCoreV1PodList data, response status code and response headers def list_core_v1_namespaced_pod_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_pod ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PodTemplateList] def list_core_v1_namespaced_pod_template(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_pod_template_with_http_info(namespace, opts) data end # list or watch objects of kind PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PodTemplateList, Integer, Hash)>] IoK8sApiCoreV1PodTemplateList data, response status code and response headers def list_core_v1_namespaced_pod_template_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_pod_template ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplateList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ReplicationControllerList] def list_core_v1_namespaced_replication_controller(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_replication_controller_with_http_info(namespace, opts) data end # list or watch objects of kind ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ReplicationControllerList, Integer, Hash)>] IoK8sApiCoreV1ReplicationControllerList data, response status code and response headers def list_core_v1_namespaced_replication_controller_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationControllerList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ResourceQuotaList] def list_core_v1_namespaced_resource_quota(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_resource_quota_with_http_info(namespace, opts) data end # list or watch objects of kind ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ResourceQuotaList, Integer, Hash)>] IoK8sApiCoreV1ResourceQuotaList data, response status code and response headers def list_core_v1_namespaced_resource_quota_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuotaList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1SecretList] def list_core_v1_namespaced_secret(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_secret_with_http_info(namespace, opts) data end # list or watch objects of kind Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1SecretList, Integer, Hash)>] IoK8sApiCoreV1SecretList data, response status code and response headers def list_core_v1_namespaced_secret_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_secret ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1SecretList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ServiceList] def list_core_v1_namespaced_service(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_service_with_http_info(namespace, opts) data end # list or watch objects of kind Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ServiceList, Integer, Hash)>] IoK8sApiCoreV1ServiceList data, response status code and response headers def list_core_v1_namespaced_service_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_service ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ServiceAccountList] def list_core_v1_namespaced_service_account(namespace, opts = {}) data, _status_code, _headers = list_core_v1_namespaced_service_account_with_http_info(namespace, opts) data end # list or watch objects of kind ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ServiceAccountList, Integer, Hash)>] IoK8sApiCoreV1ServiceAccountList data, response status code and response headers def list_core_v1_namespaced_service_account_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_namespaced_service_account ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.list_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccountList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1NodeList] def list_core_v1_node(opts = {}) data, _status_code, _headers = list_core_v1_node_with_http_info(opts) data end # list or watch objects of kind Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1NodeList, Integer, Hash)>] IoK8sApiCoreV1NodeList data, response status code and response headers def list_core_v1_node_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_node ...' if @api_client.config.debugging # resource path local_var_path = '/api/v1/nodes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1NodeList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PersistentVolumeList] def list_core_v1_persistent_volume(opts = {}) data, _status_code, _headers = list_core_v1_persistent_volume_with_http_info(opts) data end # list or watch objects of kind PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PersistentVolumeList, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeList data, response status code and response headers def list_core_v1_persistent_volume_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_persistent_volume ...' end # resource path local_var_path = '/api/v1/persistentvolumes' # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind PersistentVolumeClaim # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PersistentVolumeClaimList] def list_core_v1_persistent_volume_claim_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind PersistentVolumeClaim # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaimList, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaimList data, response status code and response headers def list_core_v1_persistent_volume_claim_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_persistent_volume_claim_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/persistentvolumeclaims' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaimList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_persistent_volume_claim_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_persistent_volume_claim_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Pod # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PodList] def list_core_v1_pod_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_pod_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind Pod # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PodList, Integer, Hash)>] IoK8sApiCoreV1PodList data, response status code and response headers def list_core_v1_pod_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_pod_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/pods' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_pod_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_pod_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind PodTemplate # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1PodTemplateList] def list_core_v1_pod_template_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_pod_template_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind PodTemplate # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1PodTemplateList, Integer, Hash)>] IoK8sApiCoreV1PodTemplateList data, response status code and response headers def list_core_v1_pod_template_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_pod_template_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/podtemplates' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplateList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_pod_template_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_pod_template_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ReplicationController # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ReplicationControllerList] def list_core_v1_replication_controller_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_replication_controller_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind ReplicationController # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ReplicationControllerList, Integer, Hash)>] IoK8sApiCoreV1ReplicationControllerList data, response status code and response headers def list_core_v1_replication_controller_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_replication_controller_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/replicationcontrollers' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationControllerList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_replication_controller_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_replication_controller_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ResourceQuota # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ResourceQuotaList] def list_core_v1_resource_quota_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_resource_quota_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind ResourceQuota # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ResourceQuotaList, Integer, Hash)>] IoK8sApiCoreV1ResourceQuotaList data, response status code and response headers def list_core_v1_resource_quota_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_resource_quota_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/resourcequotas' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuotaList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_resource_quota_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_resource_quota_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Secret # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1SecretList] def list_core_v1_secret_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_secret_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind Secret # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1SecretList, Integer, Hash)>] IoK8sApiCoreV1SecretList data, response status code and response headers def list_core_v1_secret_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_secret_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/secrets' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1SecretList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_secret_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_secret_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind ServiceAccount # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ServiceAccountList] def list_core_v1_service_account_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_service_account_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind ServiceAccount # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ServiceAccountList, Integer, Hash)>] IoK8sApiCoreV1ServiceAccountList data, response status code and response headers def list_core_v1_service_account_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_service_account_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/serviceaccounts' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccountList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_service_account_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_service_account_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # list or watch objects of kind Service # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApiCoreV1ServiceList] def list_core_v1_service_for_all_namespaces(opts = {}) data, _status_code, _headers = list_core_v1_service_for_all_namespaces_with_http_info(opts) data end # list or watch objects of kind Service # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApiCoreV1ServiceList, Integer, Hash)>] IoK8sApiCoreV1ServiceList data, response status code and response headers def list_core_v1_service_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.list_core_v1_service_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/services' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.list_core_v1_service_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#list_core_v1_service_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Namespace # @param name [String] name of the Namespace # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Namespace] def patch_core_v1_namespace(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespace_with_http_info(name, body, opts) data end # partially update the specified Namespace # @param name [String] name of the Namespace # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def patch_core_v1_namespace_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespace ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespace" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespace" end # resource path local_var_path = '/api/v1/namespaces/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified Namespace # @param name [String] name of the Namespace # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Namespace] def patch_core_v1_namespace_status(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespace_status_with_http_info(name, body, opts) data end # partially update status of the specified Namespace # @param name [String] name of the Namespace # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def patch_core_v1_namespace_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespace_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespace_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespace_status" end # resource path local_var_path = '/api/v1/namespaces/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespace_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespace_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ConfigMap] def patch_core_v1_namespaced_config_map(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_config_map_with_http_info(name, namespace, body, opts) data end # partially update the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ConfigMap, Integer, Hash)>] IoK8sApiCoreV1ConfigMap data, response status code and response headers def patch_core_v1_namespaced_config_map_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_config_map ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_config_map" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_config_map" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMap' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Endpoints] def patch_core_v1_namespaced_endpoints(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, opts) data end # partially update the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Endpoints, Integer, Hash)>] IoK8sApiCoreV1Endpoints data, response status code and response headers def patch_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_endpoints ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_endpoints" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_endpoints" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Endpoints' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Event] def patch_core_v1_namespaced_event(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_event_with_http_info(name, namespace, body, opts) data end # partially update the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Event, Integer, Hash)>] IoK8sApiCoreV1Event data, response status code and response headers def patch_core_v1_namespaced_event_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_event ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_event" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_event" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Event' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1LimitRange] def patch_core_v1_namespaced_limit_range(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, opts) data end # partially update the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1LimitRange, Integer, Hash)>] IoK8sApiCoreV1LimitRange data, response status code and response headers def patch_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_limit_range ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_limit_range" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_limit_range" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRange' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def patch_core_v1_namespaced_persistent_volume_claim(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, opts) data end # partially update the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def patch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def patch_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, opts) data end # partially update status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def patch_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_persistent_volume_claim_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_persistent_volume_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Pod] def patch_core_v1_namespaced_pod(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_pod_with_http_info(name, namespace, body, opts) data end # partially update the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def patch_core_v1_namespaced_pod_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_pod ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_pod" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_pod" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Pod] def patch_core_v1_namespaced_pod_ephemeralcontainers(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, body, opts) data end # partially update ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def patch_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_pod_ephemeralcontainers ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_pod_ephemeralcontainers" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_pod_ephemeralcontainers" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_pod_ephemeralcontainers" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_pod_ephemeralcontainers', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_pod_ephemeralcontainers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Pod] def patch_core_v1_namespaced_pod_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, opts) data end # partially update status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def patch_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_pod_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_pod_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_pod_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_pod_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_pod_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_pod_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1PodTemplate] def patch_core_v1_namespaced_pod_template(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, opts) data end # partially update the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1PodTemplate, Integer, Hash)>] IoK8sApiCoreV1PodTemplate data, response status code and response headers def patch_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_pod_template ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_pod_template" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_pod_template" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ReplicationController] def patch_core_v1_namespaced_replication_controller(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, opts) data end # partially update the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def patch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiAutoscalingV1Scale] def patch_core_v1_namespaced_replication_controller_scale(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, body, opts) data end # partially update scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiAutoscalingV1Scale, Integer, Hash)>] IoK8sApiAutoscalingV1Scale data, response status code and response headers def patch_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_replication_controller_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_scale" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiAutoscalingV1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_replication_controller_scale', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_replication_controller_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ReplicationController] def patch_core_v1_namespaced_replication_controller_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, opts) data end # partially update status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def patch_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_replication_controller_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_replication_controller_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_replication_controller_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_replication_controller_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ResourceQuota] def patch_core_v1_namespaced_resource_quota(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, opts) data end # partially update the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def patch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ResourceQuota] def patch_core_v1_namespaced_resource_quota_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, opts) data end # partially update status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def patch_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_resource_quota_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_resource_quota_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_resource_quota_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_resource_quota_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Secret] def patch_core_v1_namespaced_secret(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_secret_with_http_info(name, namespace, body, opts) data end # partially update the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Secret, Integer, Hash)>] IoK8sApiCoreV1Secret data, response status code and response headers def patch_core_v1_namespaced_secret_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_secret ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_secret" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_secret" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Secret' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Service] def patch_core_v1_namespaced_service(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_service_with_http_info(name, namespace, body, opts) data end # partially update the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def patch_core_v1_namespaced_service_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_service ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_service" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_service" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1ServiceAccount] def patch_core_v1_namespaced_service_account(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_service_account_with_http_info(name, namespace, body, opts) data end # partially update the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1ServiceAccount, Integer, Hash)>] IoK8sApiCoreV1ServiceAccount data, response status code and response headers def patch_core_v1_namespaced_service_account_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_service_account ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_service_account" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_service_account" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccount' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Service] def patch_core_v1_namespaced_service_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_core_v1_namespaced_service_status_with_http_info(name, namespace, body, opts) data end # partially update status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def patch_core_v1_namespaced_service_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_namespaced_service_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_namespaced_service_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.patch_core_v1_namespaced_service_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_namespaced_service_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_namespaced_service_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_namespaced_service_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified Node # @param name [String] name of the Node # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Node] def patch_core_v1_node(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_node_with_http_info(name, body, opts) data end # partially update the specified Node # @param name [String] name of the Node # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def patch_core_v1_node_with_http_info(name, body, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_node" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_node" end # resource path local_var_path = '/api/v1/nodes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified Node # @param name [String] name of the Node # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1Node] def patch_core_v1_node_status(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_node_status_with_http_info(name, body, opts) data end # partially update status of the specified Node # @param name [String] name of the Node # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def patch_core_v1_node_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_node_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_node_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_node_status" end # resource path local_var_path = '/api/v1/nodes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_node_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_node_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1PersistentVolume] def patch_core_v1_persistent_volume(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_persistent_volume_with_http_info(name, body, opts) data end # partially update the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def patch_core_v1_persistent_volume_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_persistent_volume ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_persistent_volume" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # partially update status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [IoK8sApiCoreV1PersistentVolume] def patch_core_v1_persistent_volume_status(name, body, opts = {}) data, _status_code, _headers = patch_core_v1_persistent_volume_status_with_http_info(name, body, opts) data end # partially update status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [Object] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [Boolean] :force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def patch_core_v1_persistent_volume_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.patch_core_v1_persistent_volume_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.patch_core_v1_persistent_volume_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.patch_core_v1_persistent_volume_status" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:force] = opts[:force] unless opts[:force].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml']) header_params['Content-Type'] = content_type unless content_type.nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.patch_core_v1_persistent_volume_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#patch_core_v1_persistent_volume_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified ComponentStatus # @param name [String] name of the ComponentStatus # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ComponentStatus] def read_core_v1_component_status(name, opts = {}) data, _status_code, _headers = read_core_v1_component_status_with_http_info(name, opts) data end # read the specified ComponentStatus # @param name [String] name of the ComponentStatus # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ComponentStatus, Integer, Hash)>] IoK8sApiCoreV1ComponentStatus data, response status code and response headers def read_core_v1_component_status_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_component_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_component_status" end # resource path local_var_path = '/api/v1/componentstatuses/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ComponentStatus' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_component_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_component_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Namespace] def read_core_v1_namespace(name, opts = {}) data, _status_code, _headers = read_core_v1_namespace_with_http_info(name, opts) data end # read the specified Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def read_core_v1_namespace_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespace ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespace" end # resource path local_var_path = '/api/v1/namespaces/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Namespace] def read_core_v1_namespace_status(name, opts = {}) data, _status_code, _headers = read_core_v1_namespace_status_with_http_info(name, opts) data end # read status of the specified Namespace # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def read_core_v1_namespace_status_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespace_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespace_status" end # resource path local_var_path = '/api/v1/namespaces/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespace_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespace_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ConfigMap] def read_core_v1_namespaced_config_map(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_config_map_with_http_info(name, namespace, opts) data end # read the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ConfigMap, Integer, Hash)>] IoK8sApiCoreV1ConfigMap data, response status code and response headers def read_core_v1_namespaced_config_map_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_config_map ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_config_map" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMap' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Endpoints] def read_core_v1_namespaced_endpoints(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts) data end # read the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Endpoints, Integer, Hash)>] IoK8sApiCoreV1Endpoints data, response status code and response headers def read_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_endpoints ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_endpoints" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Endpoints' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Event] def read_core_v1_namespaced_event(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_event_with_http_info(name, namespace, opts) data end # read the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Event, Integer, Hash)>] IoK8sApiCoreV1Event data, response status code and response headers def read_core_v1_namespaced_event_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_event ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_event" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Event' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1LimitRange] def read_core_v1_namespaced_limit_range(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts) data end # read the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1LimitRange, Integer, Hash)>] IoK8sApiCoreV1LimitRange data, response status code and response headers def read_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_limit_range ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_limit_range" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRange' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def read_core_v1_namespaced_persistent_volume_claim(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts) data end # read the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def read_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def read_core_v1_namespaced_persistent_volume_claim_status(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, opts) data end # read status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def read_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_persistent_volume_claim_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_persistent_volume_claim_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_persistent_volume_claim_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_persistent_volume_claim_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_persistent_volume_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Pod] def read_core_v1_namespaced_pod(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_pod_with_http_info(name, namespace, opts) data end # read the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def read_core_v1_namespaced_pod_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_pod ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_pod" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Pod] def read_core_v1_namespaced_pod_ephemeralcontainers(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, opts) data end # read ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def read_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_pod_ephemeralcontainers ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_pod_ephemeralcontainers" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_pod_ephemeralcontainers" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_pod_ephemeralcontainers', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_pod_ephemeralcontainers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read log of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container for which to stream logs. Defaults to only container if there is one container in the pod. # @option opts [Boolean] :follow Follow the log stream of the pod. Defaults to false. # @option opts [Boolean] :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'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). # @option opts [Integer] :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. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :previous Return previous terminated container logs. Defaults to false. # @option opts [Integer] :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. # @option opts [Integer] :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 # @option opts [Boolean] :timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. # @return [String] def read_core_v1_namespaced_pod_log(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_pod_log_with_http_info(name, namespace, opts) data end # read log of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :container The container for which to stream logs. Defaults to only container if there is one container in the pod. # @option opts [Boolean] :follow Follow the log stream of the pod. Defaults to false. # @option opts [Boolean] :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'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). # @option opts [Integer] :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. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [Boolean] :previous Return previous terminated container logs. Defaults to false. # @option opts [Integer] :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. # @option opts [Integer] :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 # @option opts [Boolean] :timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def read_core_v1_namespaced_pod_log_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_pod_log ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_pod_log" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_pod_log" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/log'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:container] = opts[:container] unless opts[:container].nil? query_params[:follow] = opts[:follow] unless opts[:follow].nil? unless opts[:insecure_skip_tls_verify_backend].nil? query_params[:insecureSkipTLSVerifyBackend] = opts[:insecure_skip_tls_verify_backend] end query_params[:limitBytes] = opts[:limit_bytes] unless opts[:limit_bytes].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:previous] = opts[:previous] unless opts[:previous].nil? query_params[:sinceSeconds] = opts[:since_seconds] unless opts[:since_seconds].nil? query_params[:tailLines] = opts[:tail_lines] unless opts[:tail_lines].nil? query_params[:timestamps] = opts[:timestamps] unless opts[:timestamps].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_pod_log', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_pod_log\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Pod] def read_core_v1_namespaced_pod_status(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_pod_status_with_http_info(name, namespace, opts) data end # read status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def read_core_v1_namespaced_pod_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_pod_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_pod_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_pod_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_pod_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_pod_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1PodTemplate] def read_core_v1_namespaced_pod_template(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts) data end # read the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1PodTemplate, Integer, Hash)>] IoK8sApiCoreV1PodTemplate data, response status code and response headers def read_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_pod_template ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_pod_template" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ReplicationController] def read_core_v1_namespaced_replication_controller(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts) data end # read the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def read_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_replication_controller" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiAutoscalingV1Scale] def read_core_v1_namespaced_replication_controller_scale(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, opts) data end # read scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiAutoscalingV1Scale, Integer, Hash)>] IoK8sApiAutoscalingV1Scale data, response status code and response headers def read_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_replication_controller_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_replication_controller_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_replication_controller_scale" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiAutoscalingV1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_replication_controller_scale', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_replication_controller_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ReplicationController] def read_core_v1_namespaced_replication_controller_status(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, opts) data end # read status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def read_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_replication_controller_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_replication_controller_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_replication_controller_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_replication_controller_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_replication_controller_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ResourceQuota] def read_core_v1_namespaced_resource_quota(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts) data end # read the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def read_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_resource_quota" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ResourceQuota] def read_core_v1_namespaced_resource_quota_status(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, opts) data end # read status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def read_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_resource_quota_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_resource_quota_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_resource_quota_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_resource_quota_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_resource_quota_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Secret] def read_core_v1_namespaced_secret(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_secret_with_http_info(name, namespace, opts) data end # read the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Secret, Integer, Hash)>] IoK8sApiCoreV1Secret data, response status code and response headers def read_core_v1_namespaced_secret_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_secret ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_secret" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Secret' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Service] def read_core_v1_namespaced_service(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_service_with_http_info(name, namespace, opts) data end # read the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def read_core_v1_namespaced_service_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_service ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_service" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1ServiceAccount] def read_core_v1_namespaced_service_account(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_service_account_with_http_info(name, namespace, opts) data end # read the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1ServiceAccount, Integer, Hash)>] IoK8sApiCoreV1ServiceAccount data, response status code and response headers def read_core_v1_namespaced_service_account_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_service_account ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_service_account" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccount' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Service] def read_core_v1_namespaced_service_status(name, namespace, opts = {}) data, _status_code, _headers = read_core_v1_namespaced_service_status_with_http_info(name, namespace, opts) data end # read status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def read_core_v1_namespaced_service_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_namespaced_service_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_namespaced_service_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.read_core_v1_namespaced_service_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_namespaced_service_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_namespaced_service_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Node] def read_core_v1_node(name, opts = {}) data, _status_code, _headers = read_core_v1_node_with_http_info(name, opts) data end # read the specified Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def read_core_v1_node_with_http_info(name, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_node" end # resource path local_var_path = '/api/v1/nodes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Node] def read_core_v1_node_status(name, opts = {}) data, _status_code, _headers = read_core_v1_node_status_with_http_info(name, opts) data end # read status of the specified Node # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def read_core_v1_node_status_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_node_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_node_status" end # resource path local_var_path = '/api/v1/nodes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_node_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_node_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1PersistentVolume] def read_core_v1_persistent_volume(name, opts = {}) data, _status_code, _headers = read_core_v1_persistent_volume_with_http_info(name, opts) data end # read the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def read_core_v1_persistent_volume_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_persistent_volume ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # read status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1PersistentVolume] def read_core_v1_persistent_volume_status(name, opts = {}) data, _status_code, _headers = read_core_v1_persistent_volume_status_with_http_info(name, opts) data end # read status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def read_core_v1_persistent_volume_status_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.read_core_v1_persistent_volume_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.read_core_v1_persistent_volume_status" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.read_core_v1_persistent_volume_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#read_core_v1_persistent_volume_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Namespace] def replace_core_v1_namespace(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespace_with_http_info(name, body, opts) data end # replace the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def replace_core_v1_namespace_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespace ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespace" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespace" end # resource path local_var_path = '/api/v1/namespaces/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace finalize of the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [IoK8sApiCoreV1Namespace] def replace_core_v1_namespace_finalize(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespace_finalize_with_http_info(name, body, opts) data end # replace finalize of the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def replace_core_v1_namespace_finalize_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespace_finalize ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespace_finalize" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespace_finalize" end # resource path local_var_path = '/api/v1/namespaces/{name}/finalize'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespace_finalize', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespace_finalize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Namespace] def replace_core_v1_namespace_status(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespace_status_with_http_info(name, body, opts) data end # replace status of the specified Namespace # @param name [String] name of the Namespace # @param body [IoK8sApiCoreV1Namespace] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Namespace, Integer, Hash)>] IoK8sApiCoreV1Namespace data, response status code and response headers def replace_core_v1_namespace_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespace_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespace_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespace_status" end # resource path local_var_path = '/api/v1/namespaces/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Namespace' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespace_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespace_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ConfigMap] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ConfigMap] def replace_core_v1_namespaced_config_map(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_config_map_with_http_info(name, namespace, body, opts) data end # replace the specified ConfigMap # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ConfigMap] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ConfigMap, Integer, Hash)>] IoK8sApiCoreV1ConfigMap data, response status code and response headers def replace_core_v1_namespaced_config_map_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_config_map ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_config_map" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_config_map" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/configmaps/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ConfigMap' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Endpoints] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Endpoints] def replace_core_v1_namespaced_endpoints(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, opts) data end # replace the specified Endpoints # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Endpoints] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Endpoints, Integer, Hash)>] IoK8sApiCoreV1Endpoints data, response status code and response headers def replace_core_v1_namespaced_endpoints_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_endpoints ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_endpoints" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_endpoints" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/endpoints/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Endpoints' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Event] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Event] def replace_core_v1_namespaced_event(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_event_with_http_info(name, namespace, body, opts) data end # replace the specified Event # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Event] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Event, Integer, Hash)>] IoK8sApiCoreV1Event data, response status code and response headers def replace_core_v1_namespaced_event_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_event ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_event" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_event" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/events/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Event' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1LimitRange] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1LimitRange] def replace_core_v1_namespaced_limit_range(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, opts) data end # replace the specified LimitRange # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1LimitRange] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1LimitRange, Integer, Hash)>] IoK8sApiCoreV1LimitRange data, response status code and response headers def replace_core_v1_namespaced_limit_range_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_limit_range ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_limit_range" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_limit_range" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/limitranges/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1LimitRange' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def replace_core_v1_namespaced_persistent_volume_claim(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, opts) data end # replace the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def replace_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolumeClaim] def replace_core_v1_namespaced_persistent_volume_claim_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, opts) data end # replace status of the specified PersistentVolumeClaim # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PersistentVolumeClaim] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolumeClaim, Integer, Hash)>] IoK8sApiCoreV1PersistentVolumeClaim data, response status code and response headers def replace_core_v1_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolumeClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_persistent_volume_claim_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_persistent_volume_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Pod] def replace_core_v1_namespaced_pod(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_pod_with_http_info(name, namespace, body, opts) data end # replace the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def replace_core_v1_namespaced_pod_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_pod ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_pod" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_pod" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Pod] def replace_core_v1_namespaced_pod_ephemeralcontainers(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, body, opts) data end # replace ephemeralcontainers of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def replace_core_v1_namespaced_pod_ephemeralcontainers_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_pod_ephemeralcontainers ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_pod_ephemeralcontainers" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_pod_ephemeralcontainers" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_pod_ephemeralcontainers" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_pod_ephemeralcontainers', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_pod_ephemeralcontainers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Pod] def replace_core_v1_namespaced_pod_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, opts) data end # replace status of the specified Pod # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Pod] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Pod, Integer, Hash)>] IoK8sApiCoreV1Pod data, response status code and response headers def replace_core_v1_namespaced_pod_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_pod_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_pod_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_pod_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_pod_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/pods/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Pod' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_pod_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_pod_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PodTemplate] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PodTemplate] def replace_core_v1_namespaced_pod_template(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, opts) data end # replace the specified PodTemplate # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1PodTemplate] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PodTemplate, Integer, Hash)>] IoK8sApiCoreV1PodTemplate data, response status code and response headers def replace_core_v1_namespaced_pod_template_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_pod_template ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_pod_template" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_pod_template" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/podtemplates/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PodTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ReplicationController] def replace_core_v1_namespaced_replication_controller(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, opts) data end # replace the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def replace_core_v1_namespaced_replication_controller_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiAutoscalingV1Scale] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiAutoscalingV1Scale] def replace_core_v1_namespaced_replication_controller_scale(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, body, opts) data end # replace scale of the specified ReplicationController # @param name [String] name of the Scale # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiAutoscalingV1Scale] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiAutoscalingV1Scale, Integer, Hash)>] IoK8sApiAutoscalingV1Scale data, response status code and response headers def replace_core_v1_namespaced_replication_controller_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_replication_controller_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_scale" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiAutoscalingV1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_replication_controller_scale', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_replication_controller_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ReplicationController] def replace_core_v1_namespaced_replication_controller_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, opts) data end # replace status of the specified ReplicationController # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ReplicationController] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ReplicationController, Integer, Hash)>] IoK8sApiCoreV1ReplicationController data, response status code and response headers def replace_core_v1_namespaced_replication_controller_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_replication_controller_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_replication_controller_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ReplicationController' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_replication_controller_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_replication_controller_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ResourceQuota] def replace_core_v1_namespaced_resource_quota(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, opts) data end # replace the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def replace_core_v1_namespaced_resource_quota_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ResourceQuota] def replace_core_v1_namespaced_resource_quota_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, opts) data end # replace status of the specified ResourceQuota # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ResourceQuota] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ResourceQuota, Integer, Hash)>] IoK8sApiCoreV1ResourceQuota data, response status code and response headers def replace_core_v1_namespaced_resource_quota_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_resource_quota_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_resource_quota_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/resourcequotas/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ResourceQuota' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_resource_quota_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_resource_quota_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Secret] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Secret] def replace_core_v1_namespaced_secret(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_secret_with_http_info(name, namespace, body, opts) data end # replace the specified Secret # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Secret] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Secret, Integer, Hash)>] IoK8sApiCoreV1Secret data, response status code and response headers def replace_core_v1_namespaced_secret_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_secret ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_secret" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_secret" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/secrets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Secret' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Service] def replace_core_v1_namespaced_service(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_service_with_http_info(name, namespace, body, opts) data end # replace the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def replace_core_v1_namespaced_service_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_service ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_service" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_service" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ServiceAccount] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1ServiceAccount] def replace_core_v1_namespaced_service_account(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_service_account_with_http_info(name, namespace, body, opts) data end # replace the specified ServiceAccount # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1ServiceAccount] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1ServiceAccount, Integer, Hash)>] IoK8sApiCoreV1ServiceAccount data, response status code and response headers def replace_core_v1_namespaced_service_account_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_service_account ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_service_account" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_service_account" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/serviceaccounts/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1ServiceAccount' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Service] def replace_core_v1_namespaced_service_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_core_v1_namespaced_service_status_with_http_info(name, namespace, body, opts) data end # replace status of the specified Service # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param body [IoK8sApiCoreV1Service] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Service, Integer, Hash)>] IoK8sApiCoreV1Service data, response status code and response headers def replace_core_v1_namespaced_service_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_namespaced_service_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_namespaced_service_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.replace_core_v1_namespaced_service_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_namespaced_service_status" end # resource path local_var_path = '/api/v1/namespaces/{namespace}/services/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Service' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_namespaced_service_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_namespaced_service_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified Node # @param name [String] name of the Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Node] def replace_core_v1_node(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_node_with_http_info(name, body, opts) data end # replace the specified Node # @param name [String] name of the Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def replace_core_v1_node_with_http_info(name, body, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_node" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_node" end # resource path local_var_path = '/api/v1/nodes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified Node # @param name [String] name of the Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1Node] def replace_core_v1_node_status(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_node_status_with_http_info(name, body, opts) data end # replace status of the specified Node # @param name [String] name of the Node # @param body [IoK8sApiCoreV1Node] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1Node, Integer, Hash)>] IoK8sApiCoreV1Node data, response status code and response headers def replace_core_v1_node_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_node_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_node_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_node_status" end # resource path local_var_path = '/api/v1/nodes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1Node' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_node_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_node_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolume] def replace_core_v1_persistent_volume(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_persistent_volume_with_http_info(name, body, opts) data end # replace the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def replace_core_v1_persistent_volume_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_persistent_volume ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_persistent_volume" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # replace status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [IoK8sApiCoreV1PersistentVolume] def replace_core_v1_persistent_volume_status(name, body, opts = {}) data, _status_code, _headers = replace_core_v1_persistent_volume_status_with_http_info(name, body, opts) data end # replace status of the specified PersistentVolume # @param name [String] name of the PersistentVolume # @param body [IoK8sApiCoreV1PersistentVolume] # @param [Hash] opts the optional parameters # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. # @return [Array<(IoK8sApiCoreV1PersistentVolume, Integer, Hash)>] IoK8sApiCoreV1PersistentVolume data, response status code and response headers def replace_core_v1_persistent_volume_status_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.replace_core_v1_persistent_volume_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.replace_core_v1_persistent_volume_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling CoreV1Api.replace_core_v1_persistent_volume_status" end # resource path local_var_path = '/api/v1/persistentvolumes/{name}/status'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil? query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IoK8sApiCoreV1PersistentVolume' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.replace_core_v1_persistent_volume_status', header_params:, query_params:, form_params:, body: post_body, auth_names:, return_type: ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: CoreV1Api#replace_core_v1_persistent_volume_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_config_map_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_config_map_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_config_map_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_config_map_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/configmaps' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_config_map_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_config_map_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_endpoints_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_endpoints_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_endpoints_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/endpoints' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_endpoints_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_endpoints_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_event_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_event_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_event_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_event_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/events' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_event_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_event_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_limit_range_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_limit_range_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_limit_range_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/limitranges' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_limit_range_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_limit_range_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Namespace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespace(name, opts = {}) data, _status_code, _headers = watch_core_v1_namespace_with_http_info(name, opts) data end # watch changes to an object of kind Namespace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Namespace # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespace_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespace ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespace" end # resource path local_var_path = '/api/v1/watch/namespaces/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespace', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Namespace. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespace_list(opts = {}) data, _status_code, _headers = watch_core_v1_namespace_list_with_http_info(opts) data end # watch individual changes to a list of Namespace. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespace_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespace_list ...' end # resource path local_var_path = '/api/v1/watch/namespaces' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespace_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespace_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind ConfigMap. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_config_map(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_config_map_with_http_info(name, namespace, opts) data end # watch changes to an object of kind ConfigMap. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ConfigMap # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_config_map_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_config_map ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_config_map" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_config_map" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/configmaps/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_config_map', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_config_map\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_config_map_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_config_map_list_with_http_info(namespace, opts) data end # watch individual changes to a list of ConfigMap. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_config_map_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_config_map_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_config_map_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/configmaps'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_config_map_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_config_map_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Endpoints. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_endpoints(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts) data end # watch changes to an object of kind Endpoints. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Endpoints # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_endpoints_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_endpoints ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_endpoints" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_endpoints" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/endpoints/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_endpoints', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_endpoints_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_endpoints_list_with_http_info(namespace, opts) data end # watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_endpoints_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_endpoints_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_endpoints_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/endpoints'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_endpoints_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_endpoints_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_event(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_event_with_http_info(name, namespace, opts) data end # watch changes to an object of kind Event. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Event # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_event_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_event ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_event" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_event" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/events/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_event', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_event_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_event_list_with_http_info(namespace, opts) data end # watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_event_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_event_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_event_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/events'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_event_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_event_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind LimitRange. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_limit_range(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts) data end # watch changes to an object of kind LimitRange. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the LimitRange # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_limit_range_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_limit_range ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_limit_range" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_limit_range" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/limitranges/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_limit_range', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_limit_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_limit_range_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_limit_range_list_with_http_info(namespace, opts) data end # watch individual changes to a list of LimitRange. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_limit_range_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_limit_range_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_limit_range_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/limitranges'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_limit_range_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_limit_range_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_persistent_volume_claim(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts) data end # watch changes to an object of kind PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PersistentVolumeClaim # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_persistent_volume_claim_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_persistent_volume_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_persistent_volume_claim_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(namespace, opts) data end # watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_persistent_volume_claim_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_persistent_volume_claim_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_persistent_volume_claim_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Pod. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_pod(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_pod_with_http_info(name, namespace, opts) data end # watch changes to an object of kind Pod. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Pod # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_pod_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_pod ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_pod" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_pod" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/pods/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_pod', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_pod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_pod_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_pod_list_with_http_info(namespace, opts) data end # watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_pod_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_pod_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_pod_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/pods'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_pod_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_pod_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind PodTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_pod_template(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts) data end # watch changes to an object of kind PodTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PodTemplate # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_pod_template_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_pod_template ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_pod_template" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_pod_template" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/podtemplates/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_pod_template', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_pod_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_pod_template_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_pod_template_list_with_http_info(namespace, opts) data end # watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_pod_template_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_pod_template_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_pod_template_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/podtemplates'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_pod_template_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_pod_template_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_replication_controller(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts) data end # watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ReplicationController # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_replication_controller_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_replication_controller ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_replication_controller" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_replication_controller" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_replication_controller', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_replication_controller\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_replication_controller_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_replication_controller_list_with_http_info(namespace, opts) data end # watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_replication_controller_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_replication_controller_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_replication_controller_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/replicationcontrollers'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_replication_controller_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_replication_controller_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_resource_quota(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts) data end # watch changes to an object of kind ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ResourceQuota # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_resource_quota_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_resource_quota ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_resource_quota" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_resource_quota" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_resource_quota', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_resource_quota_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_resource_quota_list_with_http_info(namespace, opts) data end # watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_resource_quota_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_resource_quota_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_resource_quota_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/resourcequotas'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_resource_quota_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_resource_quota_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_secret(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_secret_with_http_info(name, namespace, opts) data end # watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Secret # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_secret_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_secret ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_secret" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_secret" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/secrets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_secret', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_secret_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_secret_list_with_http_info(namespace, opts) data end # watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_secret_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_secret_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_secret_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/secrets'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_secret_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_secret_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Service. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_service(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_service_with_http_info(name, namespace, opts) data end # watch changes to an object of kind Service. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Service # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_service_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_service ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_service" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_service" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/services/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_service', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_service_account(name, namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_service_account_with_http_info(name, namespace, opts) data end # watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the ServiceAccount # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_service_account_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_service_account ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_namespaced_service_account" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_service_account" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}'.sub('{name}', CGI.escape(name.to_s)).sub( '{namespace}', CGI.escape(namespace.to_s) ) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_service_account', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_service_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_service_account_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_service_account_list_with_http_info(namespace, opts) data end # watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_service_account_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_service_account_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_service_account_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/serviceaccounts'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_service_account_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_service_account_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_namespaced_service_list(namespace, opts = {}) data, _status_code, _headers = watch_core_v1_namespaced_service_list_with_http_info(namespace, opts) data end # watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead. # @param namespace [String] object name and auth scope, such as for teams and projects # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_namespaced_service_list_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_namespaced_service_list ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling CoreV1Api.watch_core_v1_namespaced_service_list" end # resource path local_var_path = '/api/v1/watch/namespaces/{namespace}/services'.sub('{namespace}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_namespaced_service_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_namespaced_service_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind Node. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_node(name, opts = {}) data, _status_code, _headers = watch_core_v1_node_with_http_info(name, opts) data end # watch changes to an object of kind Node. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the Node # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_node_with_http_info(name, opts = {}) @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_node ...' if @api_client.config.debugging # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_node" end # resource path local_var_path = '/api/v1/watch/nodes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_node', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Node. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_node_list(opts = {}) data, _status_code, _headers = watch_core_v1_node_list_with_http_info(opts) data end # watch individual changes to a list of Node. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_node_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_node_list ...' end # resource path local_var_path = '/api/v1/watch/nodes' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_node_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_node_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_persistent_volume(name, opts = {}) data, _status_code, _headers = watch_core_v1_persistent_volume_with_http_info(name, opts) data end # watch changes to an object of kind PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. # @param name [String] name of the PersistentVolume # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_persistent_volume_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_persistent_volume ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling CoreV1Api.watch_core_v1_persistent_volume" end # resource path local_var_path = '/api/v1/watch/persistentvolumes/{name}'.sub('{name}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_persistent_volume', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_persistent_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_persistent_volume_claim_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of PersistentVolumeClaim. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_persistent_volume_claim_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_persistent_volume_claim_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/persistentvolumeclaims' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_persistent_volume_claim_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_persistent_volume_claim_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_persistent_volume_list(opts = {}) data, _status_code, _headers = watch_core_v1_persistent_volume_list_with_http_info(opts) data end # watch individual changes to a list of PersistentVolume. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_persistent_volume_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_persistent_volume_list ...' end # resource path local_var_path = '/api/v1/watch/persistentvolumes' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_persistent_volume_list', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_persistent_volume_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_pod_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_pod_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of Pod. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_pod_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_pod_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/pods' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_pod_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_pod_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_pod_template_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of PodTemplate. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_pod_template_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_pod_template_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/podtemplates' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_pod_template_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_pod_template_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_replication_controller_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of ReplicationController. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_replication_controller_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_replication_controller_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/replicationcontrollers' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_replication_controller_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_replication_controller_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_resource_quota_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of ResourceQuota. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_resource_quota_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_resource_quota_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/resourcequotas' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_resource_quota_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_resource_quota_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_secret_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_secret_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_secret_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_secret_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/secrets' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_secret_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_secret_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_service_account_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_service_account_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_service_account_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_service_account_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/serviceaccounts' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_service_account_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_service_account_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end # watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent] def watch_core_v1_service_list_for_all_namespaces(opts = {}) data, _status_code, _headers = watch_core_v1_service_list_for_all_namespaces_with_http_info(opts) data end # watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead. # @param [Hash] opts the optional parameters # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything. # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything. # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. # @option opts [String] :pretty If 'true', then the output is pretty printed. # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers def watch_core_v1_service_list_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CoreV1Api.watch_core_v1_service_list_for_all_namespaces ...' end # resource path local_var_path = '/api/v1/watch/services' # query parameters query_params = opts[:query_params] || {} query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? unless opts[:resource_version_match].nil? query_params[:resourceVersionMatch] = opts[:resource_version_match] end query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] new_options = opts.merge( operation: :'CoreV1Api.watch_core_v1_service_list_for_all_namespaces', header_params:, query_params:, form_params:, body: post_body, auth_names:, 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: CoreV1Api#watch_core_v1_service_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end end end