Class: Kubernetes::CertificatesV1beta1Api
- Inherits:
-
Object
- Object
- Kubernetes::CertificatesV1beta1Api
- Defined in:
- lib/kubernetes/api/certificates_v1beta1_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_cluster_trust_bundle_certificates_v1beta1(body, opts = {}) ⇒ V1beta1ClusterTrustBundle
create a ClusterTrustBundle.
-
#create_cluster_trust_bundle_certificates_v1beta1_with_http_info(body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
create a ClusterTrustBundle.
-
#create_namespaced_pod_certificate_request(namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
create a PodCertificateRequest.
-
#create_namespaced_pod_certificate_request_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
create a PodCertificateRequest.
-
#delete_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) ⇒ V1Status
delete a ClusterTrustBundle.
-
#delete_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterTrustBundle.
-
#delete_collection_cluster_trust_bundle_certificates_v1beta1(opts = {}) ⇒ V1Status
delete collection of ClusterTrustBundle.
-
#delete_collection_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterTrustBundle.
-
#delete_collection_namespaced_pod_certificate_request(namespace, opts = {}) ⇒ V1Status
delete collection of PodCertificateRequest.
-
#delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of PodCertificateRequest.
-
#delete_namespaced_pod_certificate_request(name, namespace, opts = {}) ⇒ V1Status
delete a PodCertificateRequest.
-
#delete_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a PodCertificateRequest.
-
#get_api_resources_certificates_v1beta1(opts = {}) ⇒ V1APIResourceList
get available resources.
-
#get_api_resources_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources.
-
#initialize(api_client = ApiClient.default) ⇒ CertificatesV1beta1Api
constructor
A new instance of CertificatesV1beta1Api.
-
#list_cluster_trust_bundle_certificates_v1beta1(opts = {}) ⇒ V1beta1ClusterTrustBundleList
list or watch objects of kind ClusterTrustBundle.
-
#list_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1beta1ClusterTrustBundleList, Integer, Hash)>
list or watch objects of kind ClusterTrustBundle.
-
#list_namespaced_pod_certificate_request(namespace, opts = {}) ⇒ V1beta1PodCertificateRequestList
list or watch objects of kind PodCertificateRequest.
-
#list_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequestList, Integer, Hash)>
list or watch objects of kind PodCertificateRequest.
-
#list_pod_certificate_request_for_all_namespaces(opts = {}) ⇒ V1beta1PodCertificateRequestList
list or watch objects of kind PodCertificateRequest.
-
#list_pod_certificate_request_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1beta1PodCertificateRequestList, Integer, Hash)>
list or watch objects of kind PodCertificateRequest.
-
#patch_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) ⇒ V1beta1ClusterTrustBundle
partially update the specified ClusterTrustBundle.
-
#patch_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
partially update the specified ClusterTrustBundle.
-
#patch_namespaced_pod_certificate_request(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
partially update the specified PodCertificateRequest.
-
#patch_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
partially update status of the specified PodCertificateRequest.
-
#patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
partially update status of the specified PodCertificateRequest.
-
#patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
partially update the specified PodCertificateRequest.
-
#read_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) ⇒ V1beta1ClusterTrustBundle
read the specified ClusterTrustBundle.
-
#read_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
read the specified ClusterTrustBundle.
-
#read_namespaced_pod_certificate_request(name, namespace, opts = {}) ⇒ V1beta1PodCertificateRequest
read the specified PodCertificateRequest.
-
#read_namespaced_pod_certificate_request_status(name, namespace, opts = {}) ⇒ V1beta1PodCertificateRequest
read status of the specified PodCertificateRequest.
-
#read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
read status of the specified PodCertificateRequest.
-
#read_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
read the specified PodCertificateRequest.
-
#replace_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) ⇒ V1beta1ClusterTrustBundle
replace the specified ClusterTrustBundle.
-
#replace_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
replace the specified ClusterTrustBundle.
-
#replace_namespaced_pod_certificate_request(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
replace the specified PodCertificateRequest.
-
#replace_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
replace status of the specified PodCertificateRequest.
-
#replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
replace status of the specified PodCertificateRequest.
-
#replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
replace the specified PodCertificateRequest.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CertificatesV1beta1Api
Returns a new instance of CertificatesV1beta1Api.
19 20 21 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_cluster_trust_bundle_certificates_v1beta1(body, opts = {}) ⇒ V1beta1ClusterTrustBundle
create a ClusterTrustBundle
30 31 32 33 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 30 def create_cluster_trust_bundle_certificates_v1beta1(body, opts = {}) data, _status_code, _headers = create_cluster_trust_bundle_certificates_v1beta1_with_http_info(body, opts) data end |
#create_cluster_trust_bundle_certificates_v1beta1_with_http_info(body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
create a ClusterTrustBundle
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 43 def create_cluster_trust_bundle_certificates_v1beta1_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.create_cluster_trust_bundle_certificates_v1beta1 ...' 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 CertificatesV1beta1Api.create_cluster_trust_bundle_certificates_v1beta1" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles' # 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] || 'V1beta1ClusterTrustBundle' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.create_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#create_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_pod_certificate_request(namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
create a PodCertificateRequest
104 105 106 107 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 104 def create_namespaced_pod_certificate_request(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_pod_certificate_request_with_http_info(namespace, body, opts) data end |
#create_namespaced_pod_certificate_request_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
create a PodCertificateRequest
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 118 def create_namespaced_pod_certificate_request_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.create_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.create_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.create_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests'.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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.create_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#create_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) ⇒ V1Status
delete a ClusterTrustBundle
185 186 187 188 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 185 def delete_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) data, _status_code, _headers = delete_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts) data end |
#delete_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterTrustBundle
201 202 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 201 def delete_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.delete_cluster_trust_bundle_certificates_v1beta1 ...' 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 CertificatesV1beta1Api.delete_cluster_trust_bundle_certificates_v1beta1" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.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 => :"CertificatesV1beta1Api.delete_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#delete_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_cluster_trust_bundle_certificates_v1beta1(opts = {}) ⇒ V1Status
delete collection of ClusterTrustBundle
273 274 275 276 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 273 def delete_collection_cluster_trust_bundle_certificates_v1beta1(opts = {}) data, _status_code, _headers = delete_collection_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts) data end |
#delete_collection_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterTrustBundle
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 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 296 def delete_collection_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.delete_collection_cluster_trust_bundle_certificates_v1beta1 ...' end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles' # 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 => :"CertificatesV1beta1Api.delete_collection_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#delete_collection_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_pod_certificate_request(namespace, opts = {}) ⇒ V1Status
delete collection of PodCertificateRequest
373 374 375 376 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 373 def delete_collection_namespaced_pod_certificate_request(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of PodCertificateRequest
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 397 def delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.delete_collection_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.delete_collection_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests'.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 => :"CertificatesV1beta1Api.delete_collection_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#delete_collection_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_pod_certificate_request(name, namespace, opts = {}) ⇒ V1Status
delete a PodCertificateRequest
471 472 473 474 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 471 def delete_namespaced_pod_certificate_request(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_pod_certificate_request_with_http_info(name, namespace, opts) data end |
#delete_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a PodCertificateRequest
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 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 488 def delete_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.delete_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.delete_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.delete_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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 => :"CertificatesV1beta1Api.delete_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#delete_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_api_resources_certificates_v1beta1(opts = {}) ⇒ V1APIResourceList
get available resources
549 550 551 552 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 549 def get_api_resources_certificates_v1beta1(opts = {}) data, _status_code, _headers = get_api_resources_certificates_v1beta1_with_http_info(opts) data end |
#get_api_resources_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources
557 558 559 560 561 562 563 564 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 557 def get_api_resources_certificates_v1beta1_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.get_api_resources_certificates_v1beta1 ...' end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/' # 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 => :"CertificatesV1beta1Api.get_api_resources_certificates_v1beta1", :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: CertificatesV1beta1Api#get_api_resources_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_cluster_trust_bundle_certificates_v1beta1(opts = {}) ⇒ V1beta1ClusterTrustBundleList
list or watch objects of kind ClusterTrustBundle
615 616 617 618 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 615 def list_cluster_trust_bundle_certificates_v1beta1(opts = {}) data, _status_code, _headers = list_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts) data end |
#list_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) ⇒ Array<(V1beta1ClusterTrustBundleList, Integer, Hash)>
list or watch objects of kind ClusterTrustBundle
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 634 def list_cluster_trust_bundle_certificates_v1beta1_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.list_cluster_trust_bundle_certificates_v1beta1 ...' end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles' # 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] || 'V1beta1ClusterTrustBundleList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.list_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#list_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_pod_certificate_request(namespace, opts = {}) ⇒ V1beta1PodCertificateRequestList
list or watch objects of kind PodCertificateRequest
704 705 706 707 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 704 def list_namespaced_pod_certificate_request(namespace, opts = {}) data, _status_code, _headers = list_namespaced_pod_certificate_request_with_http_info(namespace, opts) data end |
#list_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequestList, Integer, Hash)>
list or watch objects of kind PodCertificateRequest
724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 724 def list_namespaced_pod_certificate_request_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.list_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.list_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests'.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] || 'V1beta1PodCertificateRequestList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.list_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#list_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_pod_certificate_request_for_all_namespaces(opts = {}) ⇒ V1beta1PodCertificateRequestList
list or watch objects of kind PodCertificateRequest
797 798 799 800 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 797 def list_pod_certificate_request_for_all_namespaces(opts = {}) data, _status_code, _headers = list_pod_certificate_request_for_all_namespaces_with_http_info(opts) data end |
#list_pod_certificate_request_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1beta1PodCertificateRequestList, Integer, Hash)>
list or watch objects of kind PodCertificateRequest
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 816 def list_pod_certificate_request_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.list_pod_certificate_request_for_all_namespaces ...' end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/podcertificaterequests' # 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] || 'V1beta1PodCertificateRequestList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.list_pod_certificate_request_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: CertificatesV1beta1Api#list_pod_certificate_request_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) ⇒ V1beta1ClusterTrustBundle
partially update the specified ClusterTrustBundle
881 882 883 884 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 881 def patch_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) data, _status_code, _headers = patch_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts) data end |
#patch_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
partially update the specified ClusterTrustBundle
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 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 896 def patch_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.patch_cluster_trust_bundle_certificates_v1beta1 ...' 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 CertificatesV1beta1Api.patch_cluster_trust_bundle_certificates_v1beta1" 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 CertificatesV1beta1Api.patch_cluster_trust_bundle_certificates_v1beta1" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.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] || 'V1beta1ClusterTrustBundle' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.patch_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#patch_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_pod_certificate_request(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
partially update the specified PodCertificateRequest
966 967 968 969 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 966 def patch_namespaced_pod_certificate_request(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
partially update status of the specified PodCertificateRequest
1056 1057 1058 1059 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1056 def patch_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
partially update status of the specified PodCertificateRequest
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 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1072 def patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.patch_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request_status" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.patch_namespaced_pod_certificate_request_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: CertificatesV1beta1Api#patch_namespaced_pod_certificate_request_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
partially update the specified PodCertificateRequest
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 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 982 def patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.patch_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.patch_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.patch_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#patch_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) ⇒ V1beta1ClusterTrustBundle
read the specified ClusterTrustBundle
1140 1141 1142 1143 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1140 def read_cluster_trust_bundle_certificates_v1beta1(name, opts = {}) data, _status_code, _headers = read_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts) data end |
#read_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
read the specified ClusterTrustBundle
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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1150 def read_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.read_cluster_trust_bundle_certificates_v1beta1 ...' 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 CertificatesV1beta1Api.read_cluster_trust_bundle_certificates_v1beta1" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.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] || 'V1beta1ClusterTrustBundle' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.read_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#read_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_pod_certificate_request(name, namespace, opts = {}) ⇒ V1beta1PodCertificateRequest
read the specified PodCertificateRequest
1205 1206 1207 1208 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1205 def read_namespaced_pod_certificate_request(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_pod_certificate_request_with_http_info(name, namespace, opts) data end |
#read_namespaced_pod_certificate_request_status(name, namespace, opts = {}) ⇒ V1beta1PodCertificateRequest
read status of the specified PodCertificateRequest
1275 1276 1277 1278 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1275 def read_namespaced_pod_certificate_request_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
read status of the specified PodCertificateRequest
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1286 def read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.read_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.read_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.read_namespaced_pod_certificate_request_status" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.read_namespaced_pod_certificate_request_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: CertificatesV1beta1Api#read_namespaced_pod_certificate_request_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
read the specified PodCertificateRequest
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1216 def read_namespaced_pod_certificate_request_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.read_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.read_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.read_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.read_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#read_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) ⇒ V1beta1ClusterTrustBundle
replace the specified ClusterTrustBundle
1348 1349 1350 1351 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1348 def replace_cluster_trust_bundle_certificates_v1beta1(name, body, opts = {}) data, _status_code, _headers = replace_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts) data end |
#replace_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) ⇒ Array<(V1beta1ClusterTrustBundle, Integer, Hash)>
replace the specified ClusterTrustBundle
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1362 def replace_cluster_trust_bundle_certificates_v1beta1_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.replace_cluster_trust_bundle_certificates_v1beta1 ...' 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 CertificatesV1beta1Api.replace_cluster_trust_bundle_certificates_v1beta1" 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 CertificatesV1beta1Api.replace_cluster_trust_bundle_certificates_v1beta1" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.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] || 'V1beta1ClusterTrustBundle' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.replace_cluster_trust_bundle_certificates_v1beta1", :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: CertificatesV1beta1Api#replace_cluster_trust_bundle_certificates_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_pod_certificate_request(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
replace the specified PodCertificateRequest
1428 1429 1430 1431 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1428 def replace_namespaced_pod_certificate_request(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) ⇒ V1beta1PodCertificateRequest
replace status of the specified PodCertificateRequest
1513 1514 1515 1516 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1513 def replace_namespaced_pod_certificate_request_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
replace status of the specified PodCertificateRequest
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1528 def replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.replace_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request_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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request_status" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.replace_namespaced_pod_certificate_request_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: CertificatesV1beta1Api#replace_namespaced_pod_certificate_request_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodCertificateRequest, Integer, Hash)>
replace the specified PodCertificateRequest
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 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 |
# File 'lib/kubernetes/api/certificates_v1beta1_api.rb', line 1443 def replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CertificatesV1beta1Api.replace_namespaced_pod_certificate_request ...' 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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request" 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 CertificatesV1beta1Api.replace_namespaced_pod_certificate_request" end # resource path local_var_path = '/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{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] || 'V1beta1PodCertificateRequest' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"CertificatesV1beta1Api.replace_namespaced_pod_certificate_request", :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: CertificatesV1beta1Api#replace_namespaced_pod_certificate_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |