Class: Kubernetes::AppsV1Api
- Inherits:
-
Object
- Object
- Kubernetes::AppsV1Api
- Defined in:
- lib/kubernetes/api/apps_v1_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_namespaced_controller_revision(namespace, body, opts = {}) ⇒ V1ControllerRevision
create a ControllerRevision.
-
#create_namespaced_controller_revision_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
create a ControllerRevision.
-
#create_namespaced_daemon_set(namespace, body, opts = {}) ⇒ V1DaemonSet
create a DaemonSet.
-
#create_namespaced_daemon_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
create a DaemonSet.
-
#create_namespaced_deployment(namespace, body, opts = {}) ⇒ V1Deployment
create a Deployment.
-
#create_namespaced_deployment_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
create a Deployment.
-
#create_namespaced_replica_set(namespace, body, opts = {}) ⇒ V1ReplicaSet
create a ReplicaSet.
-
#create_namespaced_replica_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
create a ReplicaSet.
-
#create_namespaced_stateful_set(namespace, body, opts = {}) ⇒ V1StatefulSet
create a StatefulSet.
-
#create_namespaced_stateful_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
create a StatefulSet.
-
#delete_collection_namespaced_controller_revision(namespace, opts = {}) ⇒ V1Status
delete collection of ControllerRevision.
-
#delete_collection_namespaced_controller_revision_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ControllerRevision.
-
#delete_collection_namespaced_daemon_set(namespace, opts = {}) ⇒ V1Status
delete collection of DaemonSet.
-
#delete_collection_namespaced_daemon_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of DaemonSet.
-
#delete_collection_namespaced_deployment(namespace, opts = {}) ⇒ V1Status
delete collection of Deployment.
-
#delete_collection_namespaced_deployment_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of Deployment.
-
#delete_collection_namespaced_replica_set(namespace, opts = {}) ⇒ V1Status
delete collection of ReplicaSet.
-
#delete_collection_namespaced_replica_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ReplicaSet.
-
#delete_collection_namespaced_stateful_set(namespace, opts = {}) ⇒ V1Status
delete collection of StatefulSet.
-
#delete_collection_namespaced_stateful_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of StatefulSet.
-
#delete_namespaced_controller_revision(name, namespace, opts = {}) ⇒ V1Status
delete a ControllerRevision.
-
#delete_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ControllerRevision.
-
#delete_namespaced_daemon_set(name, namespace, opts = {}) ⇒ V1Status
delete a DaemonSet.
-
#delete_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a DaemonSet.
-
#delete_namespaced_deployment(name, namespace, opts = {}) ⇒ V1Status
delete a Deployment.
-
#delete_namespaced_deployment_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a Deployment.
-
#delete_namespaced_replica_set(name, namespace, opts = {}) ⇒ V1Status
delete a ReplicaSet.
-
#delete_namespaced_replica_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ReplicaSet.
-
#delete_namespaced_stateful_set(name, namespace, opts = {}) ⇒ V1Status
delete a StatefulSet.
-
#delete_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a StatefulSet.
-
#get_api_resources_apps_v1(opts = {}) ⇒ V1APIResourceList
get available resources.
-
#get_api_resources_apps_v1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources.
-
#initialize(api_client = ApiClient.default) ⇒ AppsV1Api
constructor
A new instance of AppsV1Api.
-
#list_controller_revision_for_all_namespaces(opts = {}) ⇒ V1ControllerRevisionList
list or watch objects of kind ControllerRevision.
-
#list_controller_revision_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ControllerRevisionList, Integer, Hash)>
list or watch objects of kind ControllerRevision.
-
#list_daemon_set_for_all_namespaces(opts = {}) ⇒ V1DaemonSetList
list or watch objects of kind DaemonSet.
-
#list_daemon_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1DaemonSetList, Integer, Hash)>
list or watch objects of kind DaemonSet.
-
#list_deployment_for_all_namespaces(opts = {}) ⇒ V1DeploymentList
list or watch objects of kind Deployment.
-
#list_deployment_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1DeploymentList, Integer, Hash)>
list or watch objects of kind Deployment.
-
#list_namespaced_controller_revision(namespace, opts = {}) ⇒ V1ControllerRevisionList
list or watch objects of kind ControllerRevision.
-
#list_namespaced_controller_revision_with_http_info(namespace, opts = {}) ⇒ Array<(V1ControllerRevisionList, Integer, Hash)>
list or watch objects of kind ControllerRevision.
-
#list_namespaced_daemon_set(namespace, opts = {}) ⇒ V1DaemonSetList
list or watch objects of kind DaemonSet.
-
#list_namespaced_daemon_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1DaemonSetList, Integer, Hash)>
list or watch objects of kind DaemonSet.
-
#list_namespaced_deployment(namespace, opts = {}) ⇒ V1DeploymentList
list or watch objects of kind Deployment.
-
#list_namespaced_deployment_with_http_info(namespace, opts = {}) ⇒ Array<(V1DeploymentList, Integer, Hash)>
list or watch objects of kind Deployment.
-
#list_namespaced_replica_set(namespace, opts = {}) ⇒ V1ReplicaSetList
list or watch objects of kind ReplicaSet.
-
#list_namespaced_replica_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1ReplicaSetList, Integer, Hash)>
list or watch objects of kind ReplicaSet.
-
#list_namespaced_stateful_set(namespace, opts = {}) ⇒ V1StatefulSetList
list or watch objects of kind StatefulSet.
-
#list_namespaced_stateful_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1StatefulSetList, Integer, Hash)>
list or watch objects of kind StatefulSet.
-
#list_replica_set_for_all_namespaces(opts = {}) ⇒ V1ReplicaSetList
list or watch objects of kind ReplicaSet.
-
#list_replica_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ReplicaSetList, Integer, Hash)>
list or watch objects of kind ReplicaSet.
-
#list_stateful_set_for_all_namespaces(opts = {}) ⇒ V1StatefulSetList
list or watch objects of kind StatefulSet.
-
#list_stateful_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1StatefulSetList, Integer, Hash)>
list or watch objects of kind StatefulSet.
-
#patch_namespaced_controller_revision(name, namespace, body, opts = {}) ⇒ V1ControllerRevision
partially update the specified ControllerRevision.
-
#patch_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
partially update the specified ControllerRevision.
-
#patch_namespaced_daemon_set(name, namespace, body, opts = {}) ⇒ V1DaemonSet
partially update the specified DaemonSet.
-
#patch_namespaced_daemon_set_status(name, namespace, body, opts = {}) ⇒ V1DaemonSet
partially update status of the specified DaemonSet.
-
#patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
partially update status of the specified DaemonSet.
-
#patch_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
partially update the specified DaemonSet.
-
#patch_namespaced_deployment(name, namespace, body, opts = {}) ⇒ V1Deployment
partially update the specified Deployment.
-
#patch_namespaced_deployment_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified Deployment.
-
#patch_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified Deployment.
-
#patch_namespaced_deployment_status(name, namespace, body, opts = {}) ⇒ V1Deployment
partially update status of the specified Deployment.
-
#patch_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
partially update status of the specified Deployment.
-
#patch_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
partially update the specified Deployment.
-
#patch_namespaced_replica_set(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
partially update the specified ReplicaSet.
-
#patch_namespaced_replica_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified ReplicaSet.
-
#patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified ReplicaSet.
-
#patch_namespaced_replica_set_status(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
partially update status of the specified ReplicaSet.
-
#patch_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
partially update status of the specified ReplicaSet.
-
#patch_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
partially update the specified ReplicaSet.
-
#patch_namespaced_stateful_set(name, namespace, body, opts = {}) ⇒ V1StatefulSet
partially update the specified StatefulSet.
-
#patch_namespaced_stateful_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified StatefulSet.
-
#patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified StatefulSet.
-
#patch_namespaced_stateful_set_status(name, namespace, body, opts = {}) ⇒ V1StatefulSet
partially update status of the specified StatefulSet.
-
#patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
partially update status of the specified StatefulSet.
-
#patch_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
partially update the specified StatefulSet.
-
#read_namespaced_controller_revision(name, namespace, opts = {}) ⇒ V1ControllerRevision
read the specified ControllerRevision.
-
#read_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
read the specified ControllerRevision.
-
#read_namespaced_daemon_set(name, namespace, opts = {}) ⇒ V1DaemonSet
read the specified DaemonSet.
-
#read_namespaced_daemon_set_status(name, namespace, opts = {}) ⇒ V1DaemonSet
read status of the specified DaemonSet.
-
#read_namespaced_daemon_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
read status of the specified DaemonSet.
-
#read_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
read the specified DaemonSet.
-
#read_namespaced_deployment(name, namespace, opts = {}) ⇒ V1Deployment
read the specified Deployment.
-
#read_namespaced_deployment_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified Deployment.
-
#read_namespaced_deployment_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified Deployment.
-
#read_namespaced_deployment_status(name, namespace, opts = {}) ⇒ V1Deployment
read status of the specified Deployment.
-
#read_namespaced_deployment_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
read status of the specified Deployment.
-
#read_namespaced_deployment_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
read the specified Deployment.
-
#read_namespaced_replica_set(name, namespace, opts = {}) ⇒ V1ReplicaSet
read the specified ReplicaSet.
-
#read_namespaced_replica_set_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified ReplicaSet.
-
#read_namespaced_replica_set_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified ReplicaSet.
-
#read_namespaced_replica_set_status(name, namespace, opts = {}) ⇒ V1ReplicaSet
read status of the specified ReplicaSet.
-
#read_namespaced_replica_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
read status of the specified ReplicaSet.
-
#read_namespaced_replica_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
read the specified ReplicaSet.
-
#read_namespaced_stateful_set(name, namespace, opts = {}) ⇒ V1StatefulSet
read the specified StatefulSet.
-
#read_namespaced_stateful_set_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified StatefulSet.
-
#read_namespaced_stateful_set_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified StatefulSet.
-
#read_namespaced_stateful_set_status(name, namespace, opts = {}) ⇒ V1StatefulSet
read status of the specified StatefulSet.
-
#read_namespaced_stateful_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
read status of the specified StatefulSet.
-
#read_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
read the specified StatefulSet.
-
#replace_namespaced_controller_revision(name, namespace, body, opts = {}) ⇒ V1ControllerRevision
replace the specified ControllerRevision.
-
#replace_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
replace the specified ControllerRevision.
-
#replace_namespaced_daemon_set(name, namespace, body, opts = {}) ⇒ V1DaemonSet
replace the specified DaemonSet.
-
#replace_namespaced_daemon_set_status(name, namespace, body, opts = {}) ⇒ V1DaemonSet
replace status of the specified DaemonSet.
-
#replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
replace status of the specified DaemonSet.
-
#replace_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
replace the specified DaemonSet.
-
#replace_namespaced_deployment(name, namespace, body, opts = {}) ⇒ V1Deployment
replace the specified Deployment.
-
#replace_namespaced_deployment_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified Deployment.
-
#replace_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified Deployment.
-
#replace_namespaced_deployment_status(name, namespace, body, opts = {}) ⇒ V1Deployment
replace status of the specified Deployment.
-
#replace_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
replace status of the specified Deployment.
-
#replace_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
replace the specified Deployment.
-
#replace_namespaced_replica_set(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
replace the specified ReplicaSet.
-
#replace_namespaced_replica_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified ReplicaSet.
-
#replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified ReplicaSet.
-
#replace_namespaced_replica_set_status(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
replace status of the specified ReplicaSet.
-
#replace_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
replace status of the specified ReplicaSet.
-
#replace_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
replace the specified ReplicaSet.
-
#replace_namespaced_stateful_set(name, namespace, body, opts = {}) ⇒ V1StatefulSet
replace the specified StatefulSet.
-
#replace_namespaced_stateful_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified StatefulSet.
-
#replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified StatefulSet.
-
#replace_namespaced_stateful_set_status(name, namespace, body, opts = {}) ⇒ V1StatefulSet
replace status of the specified StatefulSet.
-
#replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
replace status of the specified StatefulSet.
-
#replace_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
replace the specified StatefulSet.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_namespaced_controller_revision(namespace, body, opts = {}) ⇒ V1ControllerRevision
create a ControllerRevision
31 32 33 34 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 31 def create_namespaced_controller_revision(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_controller_revision_with_http_info(namespace, body, opts) data end |
#create_namespaced_controller_revision_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
create a ControllerRevision
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 45 def create_namespaced_controller_revision_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.create_namespaced_controller_revision ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.create_namespaced_controller_revision" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.create_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1ControllerRevision' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.create_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#create_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_daemon_set(namespace, body, opts = {}) ⇒ V1DaemonSet
create a DaemonSet
110 111 112 113 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 110 def create_namespaced_daemon_set(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_daemon_set_with_http_info(namespace, body, opts) data end |
#create_namespaced_daemon_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
create a DaemonSet
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 124 def create_namespaced_daemon_set_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.create_namespaced_daemon_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.create_namespaced_daemon_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.create_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.create_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#create_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_deployment(namespace, body, opts = {}) ⇒ V1Deployment
create a Deployment
189 190 191 192 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 189 def create_namespaced_deployment(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_deployment_with_http_info(namespace, body, opts) data end |
#create_namespaced_deployment_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
create a Deployment
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 203 def create_namespaced_deployment_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.create_namespaced_deployment ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.create_namespaced_deployment" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.create_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.create_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#create_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_replica_set(namespace, body, opts = {}) ⇒ V1ReplicaSet
create a ReplicaSet
268 269 270 271 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 268 def create_namespaced_replica_set(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_replica_set_with_http_info(namespace, body, opts) data end |
#create_namespaced_replica_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
create a ReplicaSet
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 282 def create_namespaced_replica_set_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.create_namespaced_replica_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.create_namespaced_replica_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.create_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.create_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#create_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_stateful_set(namespace, body, opts = {}) ⇒ V1StatefulSet
create a StatefulSet
347 348 349 350 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 347 def create_namespaced_stateful_set(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_stateful_set_with_http_info(namespace, body, opts) data end |
#create_namespaced_stateful_set_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
create a StatefulSet
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 361 def create_namespaced_stateful_set_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.create_namespaced_stateful_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.create_namespaced_stateful_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.create_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.create_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#create_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_controller_revision(namespace, opts = {}) ⇒ V1Status
delete collection of ControllerRevision
436 437 438 439 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 436 def delete_collection_namespaced_controller_revision(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_controller_revision_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_controller_revision_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ControllerRevision
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 460 def delete_collection_namespaced_controller_revision_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_collection_namespaced_controller_revision ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_collection_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_collection_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_collection_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_daemon_set(namespace, opts = {}) ⇒ V1Status
delete collection of DaemonSet
541 542 543 544 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 541 def delete_collection_namespaced_daemon_set(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_daemon_set_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_daemon_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of DaemonSet
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 565 def delete_collection_namespaced_daemon_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_collection_namespaced_daemon_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_collection_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_collection_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_collection_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_deployment(namespace, opts = {}) ⇒ V1Status
delete collection of Deployment
646 647 648 649 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 646 def delete_collection_namespaced_deployment(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_deployment_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_deployment_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of Deployment
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 670 def delete_collection_namespaced_deployment_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_collection_namespaced_deployment ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_collection_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_collection_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_collection_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_replica_set(namespace, opts = {}) ⇒ V1Status
delete collection of ReplicaSet
751 752 753 754 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 751 def delete_collection_namespaced_replica_set(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_replica_set_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_replica_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ReplicaSet
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 775 def delete_collection_namespaced_replica_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_collection_namespaced_replica_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_collection_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_collection_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_collection_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_stateful_set(namespace, opts = {}) ⇒ V1Status
delete collection of StatefulSet
856 857 858 859 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 856 def delete_collection_namespaced_stateful_set(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_stateful_set_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_stateful_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of StatefulSet
880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 880 def delete_collection_namespaced_stateful_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_collection_namespaced_stateful_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_collection_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_collection_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_collection_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_controller_revision(name, namespace, opts = {}) ⇒ V1Status
delete a ControllerRevision
954 955 956 957 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 954 def delete_namespaced_controller_revision(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_controller_revision_with_http_info(name, namespace, opts) data end |
#delete_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ControllerRevision
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 971 def delete_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_namespaced_controller_revision ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.delete_namespaced_controller_revision" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_daemon_set(name, namespace, opts = {}) ⇒ V1Status
delete a DaemonSet
1041 1042 1043 1044 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1041 def delete_namespaced_daemon_set(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_daemon_set_with_http_info(name, namespace, opts) data end |
#delete_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a DaemonSet
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1058 def delete_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_namespaced_daemon_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.delete_namespaced_daemon_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_deployment(name, namespace, opts = {}) ⇒ V1Status
delete a Deployment
1128 1129 1130 1131 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1128 def delete_namespaced_deployment(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_deployment_with_http_info(name, namespace, opts) data end |
#delete_namespaced_deployment_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a Deployment
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1145 def delete_namespaced_deployment_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_namespaced_deployment ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.delete_namespaced_deployment" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_replica_set(name, namespace, opts = {}) ⇒ V1Status
delete a ReplicaSet
1215 1216 1217 1218 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1215 def delete_namespaced_replica_set(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_replica_set_with_http_info(name, namespace, opts) data end |
#delete_namespaced_replica_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ReplicaSet
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1232 def delete_namespaced_replica_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_namespaced_replica_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.delete_namespaced_replica_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_stateful_set(name, namespace, opts = {}) ⇒ V1Status
delete a StatefulSet
1302 1303 1304 1305 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1302 def delete_namespaced_stateful_set(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_stateful_set_with_http_info(name, namespace, opts) data end |
#delete_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a StatefulSet
1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1319 def delete_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.delete_namespaced_stateful_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.delete_namespaced_stateful_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.delete_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !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', 'application/cbor']) # 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] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.delete_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#delete_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_api_resources_apps_v1(opts = {}) ⇒ V1APIResourceList
get available resources
1380 1381 1382 1383 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1380 def get_api_resources_apps_v1(opts = {}) data, _status_code, _headers = get_api_resources_apps_v1_with_http_info(opts) data end |
#get_api_resources_apps_v1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources
1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1388 def get_api_resources_apps_v1_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.get_api_resources_apps_v1 ...' end # resource path local_var_path = '/apis/apps/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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1APIResourceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.get_api_resources_apps_v1", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#get_api_resources_apps_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_controller_revision_for_all_namespaces(opts = {}) ⇒ V1ControllerRevisionList
list or watch objects of kind ControllerRevision
1446 1447 1448 1449 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1446 def list_controller_revision_for_all_namespaces(opts = {}) data, _status_code, _headers = list_controller_revision_for_all_namespaces_with_http_info(opts) data end |
#list_controller_revision_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ControllerRevisionList, Integer, Hash)>
list or watch objects of kind ControllerRevision
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1465 def list_controller_revision_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_controller_revision_for_all_namespaces ...' end # resource path local_var_path = '/apis/apps/v1/controllerrevisions' # query parameters query_params = opts[:query_params] || {} query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ControllerRevisionList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_controller_revision_for_all_namespaces", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_controller_revision_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_daemon_set_for_all_namespaces(opts = {}) ⇒ V1DaemonSetList
list or watch objects of kind DaemonSet
1534 1535 1536 1537 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1534 def list_daemon_set_for_all_namespaces(opts = {}) data, _status_code, _headers = list_daemon_set_for_all_namespaces_with_http_info(opts) data end |
#list_daemon_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1DaemonSetList, Integer, Hash)>
list or watch objects of kind DaemonSet
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1553 def list_daemon_set_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_daemon_set_for_all_namespaces ...' end # resource path local_var_path = '/apis/apps/v1/daemonsets' # query parameters query_params = opts[:query_params] || {} query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DaemonSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_daemon_set_for_all_namespaces", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_daemon_set_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_deployment_for_all_namespaces(opts = {}) ⇒ V1DeploymentList
list or watch objects of kind Deployment
1622 1623 1624 1625 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1622 def list_deployment_for_all_namespaces(opts = {}) data, _status_code, _headers = list_deployment_for_all_namespaces_with_http_info(opts) data end |
#list_deployment_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1DeploymentList, Integer, Hash)>
list or watch objects of kind Deployment
1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1641 def list_deployment_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_deployment_for_all_namespaces ...' end # resource path local_var_path = '/apis/apps/v1/deployments' # query parameters query_params = opts[:query_params] || {} query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DeploymentList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_deployment_for_all_namespaces", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_deployment_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_controller_revision(namespace, opts = {}) ⇒ V1ControllerRevisionList
list or watch objects of kind ControllerRevision
1711 1712 1713 1714 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1711 def list_namespaced_controller_revision(namespace, opts = {}) data, _status_code, _headers = list_namespaced_controller_revision_with_http_info(namespace, opts) data end |
#list_namespaced_controller_revision_with_http_info(namespace, opts = {}) ⇒ Array<(V1ControllerRevisionList, Integer, Hash)>
list or watch objects of kind ControllerRevision
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1731 def list_namespaced_controller_revision_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_namespaced_controller_revision ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.list_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ControllerRevisionList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_daemon_set(namespace, opts = {}) ⇒ V1DaemonSetList
list or watch objects of kind DaemonSet
1805 1806 1807 1808 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1805 def list_namespaced_daemon_set(namespace, opts = {}) data, _status_code, _headers = list_namespaced_daemon_set_with_http_info(namespace, opts) data end |
#list_namespaced_daemon_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1DaemonSetList, Integer, Hash)>
list or watch objects of kind DaemonSet
1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1825 def list_namespaced_daemon_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_namespaced_daemon_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.list_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DaemonSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_deployment(namespace, opts = {}) ⇒ V1DeploymentList
list or watch objects of kind Deployment
1899 1900 1901 1902 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1899 def list_namespaced_deployment(namespace, opts = {}) data, _status_code, _headers = list_namespaced_deployment_with_http_info(namespace, opts) data end |
#list_namespaced_deployment_with_http_info(namespace, opts = {}) ⇒ Array<(V1DeploymentList, Integer, Hash)>
list or watch objects of kind Deployment
1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1919 def list_namespaced_deployment_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_namespaced_deployment ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.list_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DeploymentList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_replica_set(namespace, opts = {}) ⇒ V1ReplicaSetList
list or watch objects of kind ReplicaSet
1993 1994 1995 1996 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 1993 def list_namespaced_replica_set(namespace, opts = {}) data, _status_code, _headers = list_namespaced_replica_set_with_http_info(namespace, opts) data end |
#list_namespaced_replica_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1ReplicaSetList, Integer, Hash)>
list or watch objects of kind ReplicaSet
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2013 def list_namespaced_replica_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_namespaced_replica_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.list_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ReplicaSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_stateful_set(namespace, opts = {}) ⇒ V1StatefulSetList
list or watch objects of kind StatefulSet
2087 2088 2089 2090 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2087 def list_namespaced_stateful_set(namespace, opts = {}) data, _status_code, _headers = list_namespaced_stateful_set_with_http_info(namespace, opts) data end |
#list_namespaced_stateful_set_with_http_info(namespace, opts = {}) ⇒ Array<(V1StatefulSetList, Integer, Hash)>
list or watch objects of kind StatefulSet
2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2107 def list_namespaced_stateful_set_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_namespaced_stateful_set ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.list_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1StatefulSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_replica_set_for_all_namespaces(opts = {}) ⇒ V1ReplicaSetList
list or watch objects of kind ReplicaSet
2180 2181 2182 2183 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2180 def list_replica_set_for_all_namespaces(opts = {}) data, _status_code, _headers = list_replica_set_for_all_namespaces_with_http_info(opts) data end |
#list_replica_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ReplicaSetList, Integer, Hash)>
list or watch objects of kind ReplicaSet
2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2199 def list_replica_set_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_replica_set_for_all_namespaces ...' end # resource path local_var_path = '/apis/apps/v1/replicasets' # query parameters query_params = opts[:query_params] || {} query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ReplicaSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_replica_set_for_all_namespaces", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_replica_set_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_stateful_set_for_all_namespaces(opts = {}) ⇒ V1StatefulSetList
list or watch objects of kind StatefulSet
2268 2269 2270 2271 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2268 def list_stateful_set_for_all_namespaces(opts = {}) data, _status_code, _headers = list_stateful_set_for_all_namespaces_with_http_info(opts) data end |
#list_stateful_set_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1StatefulSetList, Integer, Hash)>
list or watch objects of kind StatefulSet
2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2287 def list_stateful_set_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.list_stateful_set_for_all_namespaces ...' end # resource path local_var_path = '/apis/apps/v1/statefulsets' # query parameters query_params = opts[:query_params] || {} query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil? query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil? query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil? query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil? query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil? query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil? query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil? query_params[:'watch'] = opts[:'watch'] if !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/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1StatefulSetList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.list_stateful_set_for_all_namespaces", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#list_stateful_set_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_controller_revision(name, namespace, body, opts = {}) ⇒ V1ControllerRevision
partially update the specified ControllerRevision
2353 2354 2355 2356 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2353 def patch_namespaced_controller_revision(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_controller_revision_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
partially update the specified ControllerRevision
2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2369 def patch_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_controller_revision ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_controller_revision" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_controller_revision" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1ControllerRevision' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_daemon_set(name, namespace, body, opts = {}) ⇒ V1DaemonSet
partially update the specified DaemonSet
2443 2444 2445 2446 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2443 def patch_namespaced_daemon_set(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_daemon_set_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_daemon_set_status(name, namespace, body, opts = {}) ⇒ V1DaemonSet
partially update status of the specified DaemonSet
2533 2534 2535 2536 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2533 def patch_namespaced_daemon_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
partially update status of the specified DaemonSet
2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2549 def patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_daemon_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_daemon_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_daemon_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_daemon_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_daemon_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_daemon_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
partially update the specified DaemonSet
2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2459 def patch_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_daemon_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_daemon_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_daemon_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_deployment(name, namespace, body, opts = {}) ⇒ V1Deployment
partially update the specified Deployment
2623 2624 2625 2626 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2623 def patch_namespaced_deployment(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_deployment_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_deployment_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified Deployment
2713 2714 2715 2716 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2713 def patch_namespaced_deployment_scale(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_deployment_scale_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified Deployment
2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2729 def patch_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_deployment_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_deployment_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_deployment_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_deployment_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_deployment_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_deployment_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_deployment_status(name, namespace, body, opts = {}) ⇒ V1Deployment
partially update status of the specified Deployment
2803 2804 2805 2806 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2803 def patch_namespaced_deployment_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_deployment_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
partially update status of the specified Deployment
2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2819 def patch_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_deployment_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_deployment_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_deployment_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_deployment_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_deployment_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_deployment_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
partially update the specified Deployment
2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2639 def patch_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_deployment ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_deployment" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_deployment" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_replica_set(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
partially update the specified ReplicaSet
2893 2894 2895 2896 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2893 def patch_namespaced_replica_set(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_replica_set_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_replica_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified ReplicaSet
2983 2984 2985 2986 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2983 def patch_namespaced_replica_set_scale(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified ReplicaSet
2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2999 def patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_replica_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_replica_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_replica_set_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_replica_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_replica_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_replica_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_replica_set_status(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
partially update status of the specified ReplicaSet
3073 3074 3075 3076 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3073 def patch_namespaced_replica_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_replica_set_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
partially update status of the specified ReplicaSet
3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3089 def patch_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_replica_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_replica_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_replica_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_replica_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_replica_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_replica_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
partially update the specified ReplicaSet
2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 2909 def patch_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_replica_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_replica_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_replica_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_stateful_set(name, namespace, body, opts = {}) ⇒ V1StatefulSet
partially update the specified StatefulSet
3163 3164 3165 3166 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3163 def patch_namespaced_stateful_set(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_stateful_set_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_stateful_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
partially update scale of the specified StatefulSet
3253 3254 3255 3256 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3253 def patch_namespaced_stateful_set_scale(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
partially update scale of the specified StatefulSet
3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3269 def patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_stateful_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_stateful_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_stateful_set_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_stateful_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_stateful_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_stateful_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_stateful_set_status(name, namespace, body, opts = {}) ⇒ V1StatefulSet
partially update status of the specified StatefulSet
3343 3344 3345 3346 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3343 def patch_namespaced_stateful_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
partially update status of the specified StatefulSet
3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3359 def patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_stateful_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_stateful_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_stateful_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_stateful_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_stateful_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_stateful_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
partially update the specified StatefulSet
3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3179 def patch_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.patch_namespaced_stateful_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.patch_namespaced_stateful_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.patch_namespaced_stateful_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.patch_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil? query_params[:'force'] = opts[:'force'] if !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', 'application/cbor']) # HTTP header 'Content-Type' header_params['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', 'application/apply-patch+cbor']) # 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] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.patch_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#patch_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_controller_revision(name, namespace, opts = {}) ⇒ V1ControllerRevision
read the specified ControllerRevision
3428 3429 3430 3431 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3428 def read_namespaced_controller_revision(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_controller_revision_with_http_info(name, namespace, opts) data end |
#read_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
read the specified ControllerRevision
3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3439 def read_namespaced_controller_revision_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_controller_revision ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_controller_revision" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ControllerRevision' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_daemon_set(name, namespace, opts = {}) ⇒ V1DaemonSet
read the specified DaemonSet
3498 3499 3500 3501 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3498 def read_namespaced_daemon_set(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_daemon_set_with_http_info(name, namespace, opts) data end |
#read_namespaced_daemon_set_status(name, namespace, opts = {}) ⇒ V1DaemonSet
read status of the specified DaemonSet
3568 3569 3570 3571 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3568 def read_namespaced_daemon_set_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_daemon_set_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_daemon_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
read status of the specified DaemonSet
3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3579 def read_namespaced_daemon_set_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_daemon_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_daemon_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_daemon_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_daemon_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_daemon_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
read the specified DaemonSet
3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3509 def read_namespaced_daemon_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_daemon_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_daemon_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_deployment(name, namespace, opts = {}) ⇒ V1Deployment
read the specified Deployment
3638 3639 3640 3641 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3638 def read_namespaced_deployment(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_deployment_with_http_info(name, namespace, opts) data end |
#read_namespaced_deployment_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified Deployment
3708 3709 3710 3711 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3708 def read_namespaced_deployment_scale(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_deployment_scale_with_http_info(name, namespace, opts) data end |
#read_namespaced_deployment_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified Deployment
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3719 def read_namespaced_deployment_scale_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_deployment_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_deployment_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_deployment_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_deployment_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_deployment_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_deployment_status(name, namespace, opts = {}) ⇒ V1Deployment
read status of the specified Deployment
3778 3779 3780 3781 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3778 def read_namespaced_deployment_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_deployment_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_deployment_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
read status of the specified Deployment
3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3789 def read_namespaced_deployment_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_deployment_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_deployment_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_deployment_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_deployment_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_deployment_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_deployment_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
read the specified Deployment
3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3649 def read_namespaced_deployment_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_deployment ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_deployment" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_replica_set(name, namespace, opts = {}) ⇒ V1ReplicaSet
read the specified ReplicaSet
3848 3849 3850 3851 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3848 def read_namespaced_replica_set(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_replica_set_with_http_info(name, namespace, opts) data end |
#read_namespaced_replica_set_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified ReplicaSet
3918 3919 3920 3921 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3918 def read_namespaced_replica_set_scale(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_replica_set_scale_with_http_info(name, namespace, opts) data end |
#read_namespaced_replica_set_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified ReplicaSet
3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3929 def read_namespaced_replica_set_scale_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_replica_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_replica_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_replica_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_replica_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_replica_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_replica_set_status(name, namespace, opts = {}) ⇒ V1ReplicaSet
read status of the specified ReplicaSet
3988 3989 3990 3991 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3988 def read_namespaced_replica_set_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_replica_set_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_replica_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
read status of the specified ReplicaSet
3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3999 def read_namespaced_replica_set_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_replica_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_replica_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_replica_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_replica_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_replica_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_replica_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
read the specified ReplicaSet
3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 3859 def read_namespaced_replica_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_replica_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_replica_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_stateful_set(name, namespace, opts = {}) ⇒ V1StatefulSet
read the specified StatefulSet
4058 4059 4060 4061 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4058 def read_namespaced_stateful_set(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_stateful_set_with_http_info(name, namespace, opts) data end |
#read_namespaced_stateful_set_scale(name, namespace, opts = {}) ⇒ V1Scale
read scale of the specified StatefulSet
4128 4129 4130 4131 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4128 def read_namespaced_stateful_set_scale(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_stateful_set_scale_with_http_info(name, namespace, opts) data end |
#read_namespaced_stateful_set_scale_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
read scale of the specified StatefulSet
4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4139 def read_namespaced_stateful_set_scale_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_stateful_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_stateful_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_stateful_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_stateful_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_stateful_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_stateful_set_status(name, namespace, opts = {}) ⇒ V1StatefulSet
read status of the specified StatefulSet
4198 4199 4200 4201 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4198 def read_namespaced_stateful_set_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_stateful_set_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_stateful_set_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
read status of the specified StatefulSet
4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4209 def read_namespaced_stateful_set_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_stateful_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_stateful_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_stateful_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_stateful_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_stateful_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
read the specified StatefulSet
4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4069 def read_namespaced_stateful_set_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.read_namespaced_stateful_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.read_namespaced_stateful_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.read_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !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', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.read_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#read_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_controller_revision(name, namespace, body, opts = {}) ⇒ V1ControllerRevision
replace the specified ControllerRevision
4272 4273 4274 4275 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4272 def replace_namespaced_controller_revision(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_controller_revision_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ControllerRevision, Integer, Hash)>
replace the specified ControllerRevision
4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4287 def replace_namespaced_controller_revision_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_controller_revision ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_controller_revision" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_controller_revision" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_controller_revision" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1ControllerRevision' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_controller_revision", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_controller_revision\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_daemon_set(name, namespace, body, opts = {}) ⇒ V1DaemonSet
replace the specified DaemonSet
4357 4358 4359 4360 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4357 def replace_namespaced_daemon_set(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_daemon_set_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_daemon_set_status(name, namespace, body, opts = {}) ⇒ V1DaemonSet
replace status of the specified DaemonSet
4442 4443 4444 4445 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4442 def replace_namespaced_daemon_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
replace status of the specified DaemonSet
4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4457 def replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_daemon_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_daemon_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_daemon_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_daemon_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_daemon_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_daemon_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1DaemonSet, Integer, Hash)>
replace the specified DaemonSet
4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4372 def replace_namespaced_daemon_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_daemon_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_daemon_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_daemon_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_daemon_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/daemonsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1DaemonSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_daemon_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_daemon_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_deployment(name, namespace, body, opts = {}) ⇒ V1Deployment
replace the specified Deployment
4527 4528 4529 4530 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4527 def replace_namespaced_deployment(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_deployment_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_deployment_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified Deployment
4612 4613 4614 4615 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4612 def replace_namespaced_deployment_scale(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_deployment_scale_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified Deployment
4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4627 def replace_namespaced_deployment_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_deployment_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_deployment_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_deployment_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_deployment_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_deployment_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_deployment_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_deployment_status(name, namespace, body, opts = {}) ⇒ V1Deployment
replace status of the specified Deployment
4697 4698 4699 4700 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4697 def replace_namespaced_deployment_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_deployment_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
replace status of the specified Deployment
4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4712 def replace_namespaced_deployment_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_deployment_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_deployment_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_deployment_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_deployment_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_deployment_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_deployment_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Deployment, Integer, Hash)>
replace the specified Deployment
4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4542 def replace_namespaced_deployment_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_deployment ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_deployment" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_deployment" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_deployment" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/deployments/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Deployment' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_deployment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_replica_set(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
replace the specified ReplicaSet
4782 4783 4784 4785 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4782 def replace_namespaced_replica_set(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_replica_set_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_replica_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified ReplicaSet
4867 4868 4869 4870 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4867 def replace_namespaced_replica_set_scale(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified ReplicaSet
4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4882 def replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_replica_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_replica_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_replica_set_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_replica_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_replica_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_replica_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_replica_set_status(name, namespace, body, opts = {}) ⇒ V1ReplicaSet
replace status of the specified ReplicaSet
4952 4953 4954 4955 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4952 def replace_namespaced_replica_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_replica_set_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
replace status of the specified ReplicaSet
4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4967 def replace_namespaced_replica_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_replica_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_replica_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_replica_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_replica_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_replica_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_replica_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ReplicaSet, Integer, Hash)>
replace the specified ReplicaSet
4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 4797 def replace_namespaced_replica_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_replica_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_replica_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_replica_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_replica_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/replicasets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1ReplicaSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_replica_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_replica_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_stateful_set(name, namespace, body, opts = {}) ⇒ V1StatefulSet
replace the specified StatefulSet
5037 5038 5039 5040 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5037 def replace_namespaced_stateful_set(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_stateful_set_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_stateful_set_scale(name, namespace, body, opts = {}) ⇒ V1Scale
replace scale of the specified StatefulSet
5122 5123 5124 5125 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5122 def replace_namespaced_stateful_set_scale(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Scale, Integer, Hash)>
replace scale of the specified StatefulSet
5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5137 def replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_stateful_set_scale ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_stateful_set_scale" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_stateful_set_scale" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_stateful_set_scale" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1Scale' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_stateful_set_scale", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_stateful_set_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_stateful_set_status(name, namespace, body, opts = {}) ⇒ V1StatefulSet
replace status of the specified StatefulSet
5207 5208 5209 5210 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5207 def replace_namespaced_stateful_set_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
replace status of the specified StatefulSet
5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5222 def replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_stateful_set_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_stateful_set_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_stateful_set_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_stateful_set_status" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_stateful_set_status", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_stateful_set_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1StatefulSet, Integer, Hash)>
replace the specified StatefulSet
5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 |
# File 'lib/kubernetes/api/apps_v1_api.rb', line 5052 def replace_namespaced_stateful_set_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsV1Api.replace_namespaced_stateful_set ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling AppsV1Api.replace_namespaced_stateful_set" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling AppsV1Api.replace_namespaced_stateful_set" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsV1Api.replace_namespaced_stateful_set" end # resource path local_var_path = '/apis/apps/v1/namespaces/{namespace}/statefulsets/{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'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil? query_params[:'fieldValidation'] = opts[:'field_validation'] if !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', 'application/cbor']) # 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] || 'V1StatefulSet' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"AppsV1Api.replace_namespaced_stateful_set", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsV1Api#replace_namespaced_stateful_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |