Class: Kubernetes::PolicyV1beta1Api
- Inherits:
-
Object
- Object
- Kubernetes::PolicyV1beta1Api
- Defined in:
- lib/kubernetes/api/policy_v1beta1_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_namespaced_pod_disruption_budget(namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
create a PodDisruptionBudget.
-
#create_namespaced_pod_disruption_budget_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
create a PodDisruptionBudget.
-
#create_pod_security_policy(body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
create a PodSecurityPolicy.
-
#create_pod_security_policy_with_http_info(body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
create a PodSecurityPolicy.
-
#delete_collection_namespaced_pod_disruption_budget(namespace, opts = {}) ⇒ V1Status
delete collection of PodDisruptionBudget.
-
#delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete collection of PodDisruptionBudget.
-
#delete_collection_pod_security_policy(opts = {}) ⇒ V1Status
delete collection of PodSecurityPolicy.
-
#delete_collection_pod_security_policy_with_http_info(opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete collection of PodSecurityPolicy.
-
#delete_namespaced_pod_disruption_budget(name, namespace, opts = {}) ⇒ V1Status
delete a PodDisruptionBudget.
-
#delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete a PodDisruptionBudget.
-
#delete_pod_security_policy(name, opts = {}) ⇒ V1Status
delete a PodSecurityPolicy.
-
#delete_pod_security_policy_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete a PodSecurityPolicy.
-
#get_api_resources(opts = {}) ⇒ V1APIResourceList
get available resources.
-
#get_api_resources_with_http_info(_opts = {}) ⇒ Array<(V1APIResourceList, Fixnum, Hash)>
get available resources.
-
#initialize(api_client = ApiClient.default) ⇒ PolicyV1beta1Api
constructor
A new instance of PolicyV1beta1Api.
-
#list_namespaced_pod_disruption_budget(namespace, opts = {}) ⇒ V1beta1PodDisruptionBudgetList
list or watch objects of kind PodDisruptionBudget.
-
#list_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudgetList, Fixnum, Hash)>
list or watch objects of kind PodDisruptionBudget.
-
#list_pod_disruption_budget_for_all_namespaces(opts = {}) ⇒ V1beta1PodDisruptionBudgetList
list or watch objects of kind PodDisruptionBudget.
-
#list_pod_disruption_budget_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1beta1PodDisruptionBudgetList, Fixnum, Hash)>
list or watch objects of kind PodDisruptionBudget.
-
#list_pod_security_policy(opts = {}) ⇒ PolicyV1beta1PodSecurityPolicyList
list or watch objects of kind PodSecurityPolicy.
-
#list_pod_security_policy_with_http_info(opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicyList, Fixnum, Hash)>
list or watch objects of kind PodSecurityPolicy.
-
#patch_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
partially update the specified PodDisruptionBudget.
-
#patch_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
partially update status of the specified PodDisruptionBudget.
-
#patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
partially update status of the specified PodDisruptionBudget.
-
#patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
partially update the specified PodDisruptionBudget.
-
#patch_pod_security_policy(name, body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
partially update the specified PodSecurityPolicy.
-
#patch_pod_security_policy_with_http_info(name, body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
partially update the specified PodSecurityPolicy.
-
#read_namespaced_pod_disruption_budget(name, namespace, opts = {}) ⇒ V1beta1PodDisruptionBudget
read the specified PodDisruptionBudget.
-
#read_namespaced_pod_disruption_budget_status(name, namespace, opts = {}) ⇒ V1beta1PodDisruptionBudget
read status of the specified PodDisruptionBudget.
-
#read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
read status of the specified PodDisruptionBudget.
-
#read_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
read the specified PodDisruptionBudget.
-
#read_pod_security_policy(name, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
read the specified PodSecurityPolicy.
-
#read_pod_security_policy_with_http_info(name, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
read the specified PodSecurityPolicy.
-
#replace_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
replace the specified PodDisruptionBudget.
-
#replace_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
replace status of the specified PodDisruptionBudget.
-
#replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
replace status of the specified PodDisruptionBudget.
-
#replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
replace the specified PodDisruptionBudget.
-
#replace_pod_security_policy(name, body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
replace the specified PodSecurityPolicy.
-
#replace_pod_security_policy_with_http_info(name, body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
replace the specified PodSecurityPolicy.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ PolicyV1beta1Api
Returns a new instance of PolicyV1beta1Api.
19 20 21 |
# File 'lib/kubernetes/api/policy_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/policy_v1beta1_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_namespaced_pod_disruption_budget(namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
create a PodDisruptionBudget
32 33 34 35 36 37 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 32 def create_namespaced_pod_disruption_budget(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_pod_disruption_budget_with_http_info( namespace, body, opts ) data end |
#create_namespaced_pod_disruption_budget_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
create a PodDisruptionBudget
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 100 101 102 103 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 48 def create_namespaced_pod_disruption_budget_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.create_namespaced_pod_disruption_budget ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.create_namespaced_pod_disruption_budget" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.create_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets'.sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#create_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#create_pod_security_policy(body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
create a PodSecurityPolicy
113 114 115 116 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 113 def create_pod_security_policy(body, opts = {}) data, _status_code, _headers = create_pod_security_policy_with_http_info(body, opts) data end |
#create_pod_security_policy_with_http_info(body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
create a PodSecurityPolicy
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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 126 def create_pod_security_policy_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.create_pod_security_policy ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.create_pod_security_policy" end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies' # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'PolicyV1beta1PodSecurityPolicy') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#create_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#delete_collection_namespaced_pod_disruption_budget(namespace, opts = {}) ⇒ V1Status
delete collection of PodDisruptionBudget
190 191 192 193 194 195 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 190 def delete_collection_namespaced_pod_disruption_budget(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_pod_disruption_budget_with_http_info( namespace, opts ) data end |
#delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete collection of PodDisruptionBudget
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 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 211 def delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.delete_collection_namespaced_pod_disruption_budget ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.delete_collection_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets'.sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1Status') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#delete_collection_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#delete_collection_pod_security_policy(opts = {}) ⇒ V1Status
delete collection of PodSecurityPolicy
282 283 284 285 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 282 def delete_collection_pod_security_policy(opts = {}) data, _status_code, _headers = delete_collection_pod_security_policy_with_http_info(opts) data end |
#delete_collection_pod_security_policy_with_http_info(opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete collection of PodSecurityPolicy
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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 300 def delete_collection_pod_security_policy_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.delete_collection_pod_security_policy ...' end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies' # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1Status') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#delete_collection_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#delete_namespaced_pod_disruption_budget(name, namespace, opts = {}) ⇒ V1Status
delete a PodDisruptionBudget
362 363 364 365 366 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 362 def delete_namespaced_pod_disruption_budget(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts) data end |
#delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete a PodDisruptionBudget
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 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 380 def delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.delete_namespaced_pod_disruption_budget ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.delete_namespaced_pod_disruption_budget" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.delete_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? unless opts[:grace_period_seconds].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] end unless opts[:orphan_dependents].nil? query_params[:orphanDependents] = opts[:orphan_dependents] end unless opts[:propagation_policy].nil? query_params[:propagationPolicy] = opts[:propagation_policy] end # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:body]) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1Status') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#delete_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#delete_pod_security_policy(name, opts = {}) ⇒ V1Status
delete a PodSecurityPolicy
456 457 458 459 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 456 def delete_pod_security_policy(name, opts = {}) data, _status_code, _headers = delete_pod_security_policy_with_http_info(name, opts) data end |
#delete_pod_security_policy_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Fixnum, Hash)>
delete a PodSecurityPolicy
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 521 522 523 524 525 526 527 528 529 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 472 def delete_pod_security_policy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.delete_pod_security_policy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.delete_pod_security_policy" end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies/{name}'.sub('{name}', name.to_s) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? unless opts[:grace_period_seconds].nil? query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] end unless opts[:orphan_dependents].nil? query_params[:orphanDependents] = opts[:orphan_dependents] end unless opts[:propagation_policy].nil? query_params[:propagationPolicy] = opts[:propagation_policy] end # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:body]) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1Status') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#delete_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#get_api_resources(opts = {}) ⇒ V1APIResourceList
get available resources
535 536 537 538 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 535 def get_api_resources(opts = {}) data, _status_code, _headers = get_api_resources_with_http_info(opts) data end |
#get_api_resources_with_http_info(_opts = {}) ⇒ Array<(V1APIResourceList, Fixnum, Hash)>
get available resources
544 545 546 547 548 549 550 551 552 553 554 555 556 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 544 def get_api_resources_with_http_info(_opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.get_api_resources ...' end # resource path local_var_path = '/apis/policy/v1beta1/' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1APIResourceList') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#get_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#list_namespaced_pod_disruption_budget(namespace, opts = {}) ⇒ V1beta1PodDisruptionBudgetList
list or watch objects of kind PodDisruptionBudget
598 599 600 601 602 603 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 598 def list_namespaced_pod_disruption_budget(namespace, opts = {}) data, _status_code, _headers = list_namespaced_pod_disruption_budget_with_http_info( namespace, opts ) data end |
#list_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudgetList, Fixnum, Hash)>
list or watch objects of kind PodDisruptionBudget
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 619 def list_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.list_namespaced_pod_disruption_budget ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.list_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets'.sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudgetList') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#list_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#list_pod_disruption_budget_for_all_namespaces(opts = {}) ⇒ V1beta1PodDisruptionBudgetList
list or watch objects of kind PodDisruptionBudget
690 691 692 693 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 690 def list_pod_disruption_budget_for_all_namespaces(opts = {}) data, _status_code, _headers = list_pod_disruption_budget_for_all_namespaces_with_http_info(opts) data end |
#list_pod_disruption_budget_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1beta1PodDisruptionBudgetList, Fixnum, Hash)>
list or watch objects of kind PodDisruptionBudget
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 708 def list_pod_disruption_budget_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.list_pod_disruption_budget_for_all_namespaces ...' end # resource path local_var_path = '/apis/policy/v1beta1/poddisruptionbudgets' # query parameters query_params = {} query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudgetList') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#list_pod_disruption_budget_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#list_pod_security_policy(opts = {}) ⇒ PolicyV1beta1PodSecurityPolicyList
list or watch objects of kind PodSecurityPolicy
771 772 773 774 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 771 def list_pod_security_policy(opts = {}) data, _status_code, _headers = list_pod_security_policy_with_http_info(opts) data end |
#list_pod_security_policy_with_http_info(opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicyList, Fixnum, Hash)>
list or watch objects of kind PodSecurityPolicy
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 836 837 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 789 def list_pod_security_policy_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.list_pod_security_policy ...' end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies' # query parameters query_params = {} unless opts[:include_uninitialized].nil? query_params[:includeUninitialized] = opts[:include_uninitialized] end query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:continue] = opts[:continue] unless opts[:continue].nil? query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil? query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil? query_params[:limit] = opts[:limit] unless opts[:limit].nil? query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil? query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil? query_params[:watch] = opts[:watch] unless opts[:watch].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'PolicyV1beta1PodSecurityPolicyList') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#list_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#patch_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
partially update the specified PodDisruptionBudget
848 849 850 851 852 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 848 def patch_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
partially update status of the specified PodDisruptionBudget
932 933 934 935 936 937 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 932 def patch_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_pod_disruption_budget_status_with_http_info( name, namespace, body, opts ) data end |
#patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
partially update status of the specified PodDisruptionBudget
948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 948 def patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.patch_namespaced_pod_disruption_budget_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget_status" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#patch_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
partially update the specified PodDisruptionBudget
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 863 def patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.patch_namespaced_pod_disruption_budget ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.patch_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#patch_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#patch_pod_security_policy(name, body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
partially update the specified PodSecurityPolicy
1017 1018 1019 1020 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1017 def patch_pod_security_policy(name, body, opts = {}) data, _status_code, _headers = patch_pod_security_policy_with_http_info(name, body, opts) data end |
#patch_pod_security_policy_with_http_info(name, body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
partially update the specified PodSecurityPolicy
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1030 def patch_pod_security_policy_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.patch_pod_security_policy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.patch_pod_security_policy" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.patch_pod_security_policy" end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies/{name}'.sub('{name}', name.to_s) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'PolicyV1beta1PodSecurityPolicy') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#patch_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#read_namespaced_pod_disruption_budget(name, namespace, opts = {}) ⇒ V1beta1PodDisruptionBudget
read the specified PodDisruptionBudget
1093 1094 1095 1096 1097 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1093 def read_namespaced_pod_disruption_budget(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts) data end |
#read_namespaced_pod_disruption_budget_status(name, namespace, opts = {}) ⇒ V1beta1PodDisruptionBudget
read status of the specified PodDisruptionBudget
1169 1170 1171 1172 1173 1174 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1169 def read_namespaced_pod_disruption_budget_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_pod_disruption_budget_status_with_http_info( name, namespace, opts ) data end |
#read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
read status of the specified PodDisruptionBudget
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1183 def read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.read_namespaced_pod_disruption_budget_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.read_namespaced_pod_disruption_budget_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.read_namespaced_pod_disruption_budget_status" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#read_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#read_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
read the specified PodDisruptionBudget
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1108 def read_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.read_namespaced_pod_disruption_budget ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.read_namespaced_pod_disruption_budget" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.read_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:exact] = opts[:exact] unless opts[:exact].nil? query_params[:export] = opts[:export] unless opts[:export].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#read_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#read_pod_security_policy(name, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
read the specified PodSecurityPolicy
1243 1244 1245 1246 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1243 def read_pod_security_policy(name, opts = {}) data, _status_code, _headers = read_pod_security_policy_with_http_info(name, opts) data end |
#read_pod_security_policy_with_http_info(name, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
read the specified PodSecurityPolicy
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 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1256 def read_pod_security_policy_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.read_pod_security_policy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.read_pod_security_policy" end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies/{name}'.sub('{name}', name.to_s) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:exact] = opts[:exact] unless opts[:exact].nil? query_params[:export] = opts[:export] unless opts[:export].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'PolicyV1beta1PodSecurityPolicy') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#read_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#replace_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
replace the specified PodDisruptionBudget
1313 1314 1315 1316 1317 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1313 def replace_namespaced_pod_disruption_budget(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) ⇒ V1beta1PodDisruptionBudget
replace status of the specified PodDisruptionBudget
1395 1396 1397 1398 1399 1400 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1395 def replace_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_pod_disruption_budget_status_with_http_info( name, namespace, body, opts ) data end |
#replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
replace status of the specified PodDisruptionBudget
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 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 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1411 def replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.replace_namespaced_pod_disruption_budget_status ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget_status" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget_status" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget_status" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#replace_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1beta1PodDisruptionBudget, Fixnum, Hash)>
replace the specified PodDisruptionBudget
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 1376 1377 1378 1379 1380 1381 1382 1383 1384 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1328 def replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.replace_namespaced_pod_disruption_budget ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget" end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? raise ArgumentError, "Missing the required parameter 'namespace' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.replace_namespaced_pod_disruption_budget" end # resource path local_var_path = '/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', name.to_s).sub( '{namespace}', namespace.to_s ) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'V1beta1PodDisruptionBudget') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#replace_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#replace_pod_security_policy(name, body, opts = {}) ⇒ PolicyV1beta1PodSecurityPolicy
replace the specified PodSecurityPolicy
1478 1479 1480 1481 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1478 def replace_pod_security_policy(name, body, opts = {}) data, _status_code, _headers = replace_pod_security_policy_with_http_info(name, body, opts) data end |
#replace_pod_security_policy_with_http_info(name, body, opts = {}) ⇒ Array<(PolicyV1beta1PodSecurityPolicy, Fixnum, Hash)>
replace the specified PodSecurityPolicy
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 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 |
# File 'lib/kubernetes/api/policy_v1beta1_api.rb', line 1491 def replace_pod_security_policy_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyV1beta1Api.replace_pod_security_policy ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling PolicyV1beta1Api.replace_pod_security_policy" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? raise ArgumentError, "Missing the required parameter 'body' when calling PolicyV1beta1Api.replace_pod_security_policy" end # resource path local_var_path = '/apis/policy/v1beta1/podsecuritypolicies/{name}'.sub('{name}', name.to_s) # query parameters query_params = {} query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil? query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['*/*']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: 'PolicyV1beta1PodSecurityPolicy') if @api_client.config.debugging @api_client.config.logger.debug "API called: PolicyV1beta1Api#replace_pod_security_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |