Class: Kubernetes::ResourceV1Api
- Inherits:
-
Object
- Object
- Kubernetes::ResourceV1Api
- Defined in:
- lib/kubernetes/api/resource_v1_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_device_class(body, opts = {}) ⇒ V1DeviceClass
create a DeviceClass.
-
#create_device_class_with_http_info(body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
create a DeviceClass.
-
#create_namespaced_resource_claim(namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
create a ResourceClaim.
-
#create_namespaced_resource_claim_template(namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
create a ResourceClaimTemplate.
-
#create_namespaced_resource_claim_template_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
create a ResourceClaimTemplate.
-
#create_namespaced_resource_claim_with_http_info(namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
create a ResourceClaim.
-
#create_resource_slice(body, opts = {}) ⇒ V1ResourceSlice
create a ResourceSlice.
-
#create_resource_slice_with_http_info(body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
create a ResourceSlice.
-
#delete_collection_device_class(opts = {}) ⇒ V1Status
delete collection of DeviceClass.
-
#delete_collection_device_class_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of DeviceClass.
-
#delete_collection_namespaced_resource_claim(namespace, opts = {}) ⇒ V1Status
delete collection of ResourceClaim.
-
#delete_collection_namespaced_resource_claim_template(namespace, opts = {}) ⇒ V1Status
delete collection of ResourceClaimTemplate.
-
#delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceClaimTemplate.
-
#delete_collection_namespaced_resource_claim_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceClaim.
-
#delete_collection_resource_slice(opts = {}) ⇒ V1Status
delete collection of ResourceSlice.
-
#delete_collection_resource_slice_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceSlice.
-
#delete_device_class(name, opts = {}) ⇒ V1DeviceClass
delete a DeviceClass.
-
#delete_device_class_with_http_info(name, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
delete a DeviceClass.
-
#delete_namespaced_resource_claim(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
delete a ResourceClaim.
-
#delete_namespaced_resource_claim_template(name, namespace, opts = {}) ⇒ V1ResourceClaimTemplate
delete a ResourceClaimTemplate.
-
#delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
delete a ResourceClaimTemplate.
-
#delete_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
delete a ResourceClaim.
-
#delete_resource_slice(name, opts = {}) ⇒ V1ResourceSlice
delete a ResourceSlice.
-
#delete_resource_slice_with_http_info(name, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
delete a ResourceSlice.
-
#get_api_resources_get_apis_resource_k8s_io_v1(opts = {}) ⇒ V1APIResourceList
get available resources.
-
#get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources.
-
#initialize(api_client = ApiClient.default) ⇒ ResourceV1Api
constructor
A new instance of ResourceV1Api.
-
#list_device_class(opts = {}) ⇒ V1DeviceClassList
list or watch objects of kind DeviceClass.
-
#list_device_class_with_http_info(opts = {}) ⇒ Array<(V1DeviceClassList, Integer, Hash)>
list or watch objects of kind DeviceClass.
-
#list_namespaced_resource_claim(namespace, opts = {}) ⇒ V1ResourceClaimList
list or watch objects of kind ResourceClaim.
-
#list_namespaced_resource_claim_template(namespace, opts = {}) ⇒ V1ResourceClaimTemplateList
list or watch objects of kind ResourceClaimTemplate.
-
#list_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplateList, Integer, Hash)>
list or watch objects of kind ResourceClaimTemplate.
-
#list_namespaced_resource_claim_with_http_info(namespace, opts = {}) ⇒ Array<(V1ResourceClaimList, Integer, Hash)>
list or watch objects of kind ResourceClaim.
-
#list_resource_claim_for_all_namespaces(opts = {}) ⇒ V1ResourceClaimList
list or watch objects of kind ResourceClaim.
-
#list_resource_claim_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ResourceClaimList, Integer, Hash)>
list or watch objects of kind ResourceClaim.
-
#list_resource_claim_template_for_all_namespaces(opts = {}) ⇒ V1ResourceClaimTemplateList
list or watch objects of kind ResourceClaimTemplate.
-
#list_resource_claim_template_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ResourceClaimTemplateList, Integer, Hash)>
list or watch objects of kind ResourceClaimTemplate.
-
#list_resource_slice(opts = {}) ⇒ V1ResourceSliceList
list or watch objects of kind ResourceSlice.
-
#list_resource_slice_with_http_info(opts = {}) ⇒ Array<(V1ResourceSliceList, Integer, Hash)>
list or watch objects of kind ResourceSlice.
-
#patch_device_class(name, body, opts = {}) ⇒ V1DeviceClass
partially update the specified DeviceClass.
-
#patch_device_class_with_http_info(name, body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
partially update the specified DeviceClass.
-
#patch_namespaced_resource_claim(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
partially update the specified ResourceClaim.
-
#patch_namespaced_resource_claim_status(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
partially update status of the specified ResourceClaim.
-
#patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
partially update status of the specified ResourceClaim.
-
#patch_namespaced_resource_claim_template(name, namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
partially update the specified ResourceClaimTemplate.
-
#patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
partially update the specified ResourceClaimTemplate.
-
#patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
partially update the specified ResourceClaim.
-
#patch_resource_slice(name, body, opts = {}) ⇒ V1ResourceSlice
partially update the specified ResourceSlice.
-
#patch_resource_slice_with_http_info(name, body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
partially update the specified ResourceSlice.
-
#read_device_class(name, opts = {}) ⇒ V1DeviceClass
read the specified DeviceClass.
-
#read_device_class_with_http_info(name, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
read the specified DeviceClass.
-
#read_namespaced_resource_claim(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
read the specified ResourceClaim.
-
#read_namespaced_resource_claim_status(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
read status of the specified ResourceClaim.
-
#read_namespaced_resource_claim_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
read status of the specified ResourceClaim.
-
#read_namespaced_resource_claim_template(name, namespace, opts = {}) ⇒ V1ResourceClaimTemplate
read the specified ResourceClaimTemplate.
-
#read_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
read the specified ResourceClaimTemplate.
-
#read_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
read the specified ResourceClaim.
-
#read_resource_slice(name, opts = {}) ⇒ V1ResourceSlice
read the specified ResourceSlice.
-
#read_resource_slice_with_http_info(name, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
read the specified ResourceSlice.
-
#replace_device_class(name, body, opts = {}) ⇒ V1DeviceClass
replace the specified DeviceClass.
-
#replace_device_class_with_http_info(name, body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
replace the specified DeviceClass.
-
#replace_namespaced_resource_claim(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
replace the specified ResourceClaim.
-
#replace_namespaced_resource_claim_status(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
replace status of the specified ResourceClaim.
-
#replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
replace status of the specified ResourceClaim.
-
#replace_namespaced_resource_claim_template(name, namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
replace the specified ResourceClaimTemplate.
-
#replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
replace the specified ResourceClaimTemplate.
-
#replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
replace the specified ResourceClaim.
-
#replace_resource_slice(name, body, opts = {}) ⇒ V1ResourceSlice
replace the specified ResourceSlice.
-
#replace_resource_slice_with_http_info(name, body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
replace the specified ResourceSlice.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ResourceV1Api
Returns a new instance of ResourceV1Api.
19 20 21 |
# File 'lib/kubernetes/api/resource_v1_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/resource_v1_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_device_class(body, opts = {}) ⇒ V1DeviceClass
create a DeviceClass
30 31 32 33 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 30 def create_device_class(body, opts = {}) data, _status_code, _headers = create_device_class_with_http_info(body, opts) data end |
#create_device_class_with_http_info(body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
create a DeviceClass
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/resource_v1_api.rb', line 43 def create_device_class_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.create_device_class ...' 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 ResourceV1Api.create_device_class" end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses' # 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] || 'V1DeviceClass' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.create_device_class", :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: ResourceV1Api#create_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_resource_claim(namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
create a ResourceClaim
104 105 106 107 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 104 def create_namespaced_resource_claim(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_resource_claim_with_http_info(namespace, body, opts) data end |
#create_namespaced_resource_claim_template(namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
create a ResourceClaimTemplate
183 184 185 186 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 183 def create_namespaced_resource_claim_template(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_resource_claim_template_with_http_info(namespace, body, opts) data end |
#create_namespaced_resource_claim_template_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
create a ResourceClaimTemplate
197 198 199 200 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 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 197 def create_namespaced_resource_claim_template_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.create_namespaced_resource_claim_template ...' 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 ResourceV1Api.create_namespaced_resource_claim_template" 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 ResourceV1Api.create_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.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] || 'V1ResourceClaimTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.create_namespaced_resource_claim_template", :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: ResourceV1Api#create_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_resource_claim_with_http_info(namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
create a ResourceClaim
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/resource_v1_api.rb', line 118 def create_namespaced_resource_claim_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.create_namespaced_resource_claim ...' 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 ResourceV1Api.create_namespaced_resource_claim" 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 ResourceV1Api.create_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.create_namespaced_resource_claim", :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: ResourceV1Api#create_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_resource_slice(body, opts = {}) ⇒ V1ResourceSlice
create a ResourceSlice
261 262 263 264 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 261 def create_resource_slice(body, opts = {}) data, _status_code, _headers = create_resource_slice_with_http_info(body, opts) data end |
#create_resource_slice_with_http_info(body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
create a ResourceSlice
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 274 def create_resource_slice_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.create_resource_slice ...' 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 ResourceV1Api.create_resource_slice" end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices' # 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] || 'V1ResourceSlice' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.create_resource_slice", :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: ResourceV1Api#create_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_device_class(opts = {}) ⇒ V1Status
delete collection of DeviceClass
345 346 347 348 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 345 def delete_collection_device_class(opts = {}) data, _status_code, _headers = delete_collection_device_class_with_http_info(opts) data end |
#delete_collection_device_class_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of DeviceClass
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 369 def delete_collection_device_class_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_device_class ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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 => :"ResourceV1Api.delete_collection_device_class", :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: ResourceV1Api#delete_collection_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_resource_claim(namespace, opts = {}) ⇒ V1Status
delete collection of ResourceClaim
448 449 450 451 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 448 def delete_collection_namespaced_resource_claim(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_resource_claim_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_resource_claim_template(namespace, opts = {}) ⇒ V1Status
delete collection of ResourceClaimTemplate
556 557 558 559 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 556 def delete_collection_namespaced_resource_claim_template(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceClaimTemplate
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 581 def delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_namespaced_resource_claim_template ...' 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 ResourceV1Api.delete_collection_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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 => :"ResourceV1Api.delete_collection_namespaced_resource_claim_template", :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: ResourceV1Api#delete_collection_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_resource_claim_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceClaim
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 530 531 532 533 534 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 473 def delete_collection_namespaced_resource_claim_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_namespaced_resource_claim ...' 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 ResourceV1Api.delete_collection_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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 => :"ResourceV1Api.delete_collection_namespaced_resource_claim", :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: ResourceV1Api#delete_collection_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_resource_slice(opts = {}) ⇒ V1Status
delete collection of ResourceSlice
663 664 665 666 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 663 def delete_collection_resource_slice(opts = {}) data, _status_code, _headers = delete_collection_resource_slice_with_http_info(opts) data end |
#delete_collection_resource_slice_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ResourceSlice
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 687 def delete_collection_resource_slice_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_resource_slice ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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 => :"ResourceV1Api.delete_collection_resource_slice", :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: ResourceV1Api#delete_collection_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_device_class(name, opts = {}) ⇒ V1DeviceClass
delete a DeviceClass
757 758 759 760 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 757 def delete_device_class(name, opts = {}) data, _status_code, _headers = delete_device_class_with_http_info(name, opts) data end |
#delete_device_class_with_http_info(name, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
delete a DeviceClass
773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 773 def delete_device_class_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_device_class ...' 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 ResourceV1Api.delete_device_class" end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{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] || 'V1DeviceClass' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.delete_device_class", :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: ResourceV1Api#delete_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_resource_claim(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
delete a ResourceClaim
839 840 841 842 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 839 def delete_namespaced_resource_claim(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_resource_claim_with_http_info(name, namespace, opts) data end |
#delete_namespaced_resource_claim_template(name, namespace, opts = {}) ⇒ V1ResourceClaimTemplate
delete a ResourceClaimTemplate
926 927 928 929 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 926 def delete_namespaced_resource_claim_template(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts) data end |
#delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
delete a ResourceClaimTemplate
943 944 945 946 947 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 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 943 def delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_namespaced_resource_claim_template ...' 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 ResourceV1Api.delete_namespaced_resource_claim_template" 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 ResourceV1Api.delete_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{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] || 'V1ResourceClaimTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.delete_namespaced_resource_claim_template", :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: ResourceV1Api#delete_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
delete a ResourceClaim
856 857 858 859 860 861 862 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 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 856 def delete_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_namespaced_resource_claim ...' 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 ResourceV1Api.delete_namespaced_resource_claim" 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 ResourceV1Api.delete_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.delete_namespaced_resource_claim", :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: ResourceV1Api#delete_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_resource_slice(name, opts = {}) ⇒ V1ResourceSlice
delete a ResourceSlice
1012 1013 1014 1015 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1012 def delete_resource_slice(name, opts = {}) data, _status_code, _headers = delete_resource_slice_with_http_info(name, opts) data end |
#delete_resource_slice_with_http_info(name, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
delete a ResourceSlice
1028 1029 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 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1028 def delete_resource_slice_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_resource_slice ...' 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 ResourceV1Api.delete_resource_slice" end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{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] || 'V1ResourceSlice' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.delete_resource_slice", :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: ResourceV1Api#delete_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_api_resources_get_apis_resource_k8s_io_v1(opts = {}) ⇒ V1APIResourceList
get available resources
1085 1086 1087 1088 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1085 def get_api_resources_get_apis_resource_k8s_io_v1(opts = {}) data, _status_code, _headers = get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts) data end |
#get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources
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 1134 1135 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1093 def get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.get_api_resources_get_apis_resource_k8s_io_v1 ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'V1APIResourceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.get_api_resources_get_apis_resource_k8s_io_v1", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: ResourceV1Api#get_api_resources_get_apis_resource_k8s_io_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_device_class(opts = {}) ⇒ V1DeviceClassList
list or watch objects of kind DeviceClass
1152 1153 1154 1155 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1152 def list_device_class(opts = {}) data, _status_code, _headers = list_device_class_with_http_info(opts) data end |
#list_device_class_with_http_info(opts = {}) ⇒ Array<(V1DeviceClassList, Integer, Hash)>
list or watch objects of kind DeviceClass
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 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 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1172 def list_device_class_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_device_class ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1DeviceClassList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_device_class", :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: ResourceV1Api#list_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_resource_claim(namespace, opts = {}) ⇒ V1ResourceClaimList
list or watch objects of kind ResourceClaim
1244 1245 1246 1247 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1244 def list_namespaced_resource_claim(namespace, opts = {}) data, _status_code, _headers = list_namespaced_resource_claim_with_http_info(namespace, opts) data end |
#list_namespaced_resource_claim_template(namespace, opts = {}) ⇒ V1ResourceClaimTemplateList
list or watch objects of kind ResourceClaimTemplate
1341 1342 1343 1344 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1341 def list_namespaced_resource_claim_template(namespace, opts = {}) data, _status_code, _headers = list_namespaced_resource_claim_template_with_http_info(namespace, opts) data end |
#list_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplateList, Integer, Hash)>
list or watch objects of kind ResourceClaimTemplate
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 1417 1418 1419 1420 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1362 def list_namespaced_resource_claim_template_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_namespaced_resource_claim_template ...' 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 ResourceV1Api.list_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1ResourceClaimTemplateList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_namespaced_resource_claim_template", :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: ResourceV1Api#list_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_resource_claim_with_http_info(namespace, opts = {}) ⇒ Array<(V1ResourceClaimList, Integer, Hash)>
list or watch objects of kind ResourceClaim
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 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1265 def list_namespaced_resource_claim_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_namespaced_resource_claim ...' 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 ResourceV1Api.list_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1ResourceClaimList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_namespaced_resource_claim", :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: ResourceV1Api#list_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_resource_claim_for_all_namespaces(opts = {}) ⇒ V1ResourceClaimList
list or watch objects of kind ResourceClaim
1437 1438 1439 1440 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1437 def list_resource_claim_for_all_namespaces(opts = {}) data, _status_code, _headers = list_resource_claim_for_all_namespaces_with_http_info(opts) data end |
#list_resource_claim_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ResourceClaimList, Integer, Hash)>
list or watch objects of kind ResourceClaim
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 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1457 def list_resource_claim_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_claim_for_all_namespaces ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceclaims' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1ResourceClaimList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_resource_claim_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: ResourceV1Api#list_resource_claim_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_resource_claim_template_for_all_namespaces(opts = {}) ⇒ V1ResourceClaimTemplateList
list or watch objects of kind ResourceClaimTemplate
1528 1529 1530 1531 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1528 def list_resource_claim_template_for_all_namespaces(opts = {}) data, _status_code, _headers = list_resource_claim_template_for_all_namespaces_with_http_info(opts) data end |
#list_resource_claim_template_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1ResourceClaimTemplateList, Integer, Hash)>
list or watch objects of kind ResourceClaimTemplate
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 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1548 def list_resource_claim_template_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_claim_template_for_all_namespaces ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceclaimtemplates' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1ResourceClaimTemplateList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_resource_claim_template_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: ResourceV1Api#list_resource_claim_template_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_resource_slice(opts = {}) ⇒ V1ResourceSliceList
list or watch objects of kind ResourceSlice
1619 1620 1621 1622 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1619 def list_resource_slice(opts = {}) data, _status_code, _headers = list_resource_slice_with_http_info(opts) data end |
#list_resource_slice_with_http_info(opts = {}) ⇒ Array<(V1ResourceSliceList, Integer, Hash)>
list or watch objects of kind ResourceSlice
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1639 def list_resource_slice_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_slice ...' end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices' # 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[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].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] || 'V1ResourceSliceList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.list_resource_slice", :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: ResourceV1Api#list_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_device_class(name, body, opts = {}) ⇒ V1DeviceClass
partially update the specified DeviceClass
1705 1706 1707 1708 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1705 def patch_device_class(name, body, opts = {}) data, _status_code, _headers = patch_device_class_with_http_info(name, body, opts) data end |
#patch_device_class_with_http_info(name, body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
partially update the specified DeviceClass
1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1720 def patch_device_class_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_device_class ...' 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 ResourceV1Api.patch_device_class" 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 ResourceV1Api.patch_device_class" end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{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] || 'V1DeviceClass' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.patch_device_class", :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: ResourceV1Api#patch_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_resource_claim(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
partially update the specified ResourceClaim
1790 1791 1792 1793 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1790 def patch_namespaced_resource_claim(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_resource_claim_status(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
partially update status of the specified ResourceClaim
1880 1881 1882 1883 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1880 def patch_namespaced_resource_claim_status(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
partially update status of the specified ResourceClaim
1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1896 def patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim_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 ResourceV1Api.patch_namespaced_resource_claim_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 ResourceV1Api.patch_namespaced_resource_claim_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 ResourceV1Api.patch_namespaced_resource_claim_status" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.patch_namespaced_resource_claim_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: ResourceV1Api#patch_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_resource_claim_template(name, namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
partially update the specified ResourceClaimTemplate
1970 1971 1972 1973 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1970 def patch_namespaced_resource_claim_template(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
partially update the specified ResourceClaimTemplate
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1986 def patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim_template ...' 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 ResourceV1Api.patch_namespaced_resource_claim_template" 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 ResourceV1Api.patch_namespaced_resource_claim_template" 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 ResourceV1Api.patch_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{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] || 'V1ResourceClaimTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.patch_namespaced_resource_claim_template", :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: ResourceV1Api#patch_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
partially update the specified ResourceClaim
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 1806 def patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim ...' 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 ResourceV1Api.patch_namespaced_resource_claim" 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 ResourceV1Api.patch_namespaced_resource_claim" 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 ResourceV1Api.patch_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.patch_namespaced_resource_claim", :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: ResourceV1Api#patch_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_resource_slice(name, body, opts = {}) ⇒ V1ResourceSlice
partially update the specified ResourceSlice
2059 2060 2061 2062 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2059 def patch_resource_slice(name, body, opts = {}) data, _status_code, _headers = patch_resource_slice_with_http_info(name, body, opts) data end |
#patch_resource_slice_with_http_info(name, body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
partially update the specified ResourceSlice
2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2074 def patch_resource_slice_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_resource_slice ...' 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 ResourceV1Api.patch_resource_slice" 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 ResourceV1Api.patch_resource_slice" end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{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] || 'V1ResourceSlice' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.patch_resource_slice", :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: ResourceV1Api#patch_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_device_class(name, opts = {}) ⇒ V1DeviceClass
read the specified DeviceClass
2138 2139 2140 2141 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2138 def read_device_class(name, opts = {}) data, _status_code, _headers = read_device_class_with_http_info(name, opts) data end |
#read_device_class_with_http_info(name, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
read the specified DeviceClass
2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2148 def read_device_class_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.read_device_class ...' 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 ResourceV1Api.read_device_class" end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{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] || 'V1DeviceClass' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.read_device_class", :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: ResourceV1Api#read_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_resource_claim(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
read the specified ResourceClaim
2203 2204 2205 2206 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2203 def read_namespaced_resource_claim(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_resource_claim_with_http_info(name, namespace, opts) data end |
#read_namespaced_resource_claim_status(name, namespace, opts = {}) ⇒ ResourceV1ResourceClaim
read status of the specified ResourceClaim
2273 2274 2275 2276 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2273 def read_namespaced_resource_claim_status(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_resource_claim_status_with_http_info(name, namespace, opts) data end |
#read_namespaced_resource_claim_status_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
read status of the specified ResourceClaim
2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2284 def read_namespaced_resource_claim_status_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim_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 ResourceV1Api.read_namespaced_resource_claim_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 ResourceV1Api.read_namespaced_resource_claim_status" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.read_namespaced_resource_claim_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: ResourceV1Api#read_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_resource_claim_template(name, namespace, opts = {}) ⇒ V1ResourceClaimTemplate
read the specified ResourceClaimTemplate
2343 2344 2345 2346 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2343 def read_namespaced_resource_claim_template(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_resource_claim_template_with_http_info(name, namespace, opts) data end |
#read_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
read the specified ResourceClaimTemplate
2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2354 def read_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim_template ...' 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 ResourceV1Api.read_namespaced_resource_claim_template" 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 ResourceV1Api.read_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{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] || 'V1ResourceClaimTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.read_namespaced_resource_claim_template", :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: ResourceV1Api#read_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
read the specified ResourceClaim
2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2214 def read_namespaced_resource_claim_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim ...' 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 ResourceV1Api.read_namespaced_resource_claim" 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 ResourceV1Api.read_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.read_namespaced_resource_claim", :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: ResourceV1Api#read_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_resource_slice(name, opts = {}) ⇒ V1ResourceSlice
read the specified ResourceSlice
2412 2413 2414 2415 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2412 def read_resource_slice(name, opts = {}) data, _status_code, _headers = read_resource_slice_with_http_info(name, opts) data end |
#read_resource_slice_with_http_info(name, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
read the specified ResourceSlice
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2422 def read_resource_slice_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.read_resource_slice ...' 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 ResourceV1Api.read_resource_slice" end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{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] || 'V1ResourceSlice' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.read_resource_slice", :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: ResourceV1Api#read_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_device_class(name, body, opts = {}) ⇒ V1DeviceClass
replace the specified DeviceClass
2480 2481 2482 2483 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2480 def replace_device_class(name, body, opts = {}) data, _status_code, _headers = replace_device_class_with_http_info(name, body, opts) data end |
#replace_device_class_with_http_info(name, body, opts = {}) ⇒ Array<(V1DeviceClass, Integer, Hash)>
replace the specified DeviceClass
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2494 def replace_device_class_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_device_class ...' 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 ResourceV1Api.replace_device_class" 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 ResourceV1Api.replace_device_class" end # resource path local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{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] || 'V1DeviceClass' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.replace_device_class", :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: ResourceV1Api#replace_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_resource_claim(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
replace the specified ResourceClaim
2560 2561 2562 2563 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2560 def replace_namespaced_resource_claim(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_resource_claim_status(name, namespace, body, opts = {}) ⇒ ResourceV1ResourceClaim
replace status of the specified ResourceClaim
2645 2646 2647 2648 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2645 def replace_namespaced_resource_claim_status(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
replace status of the specified ResourceClaim
2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2660 def replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim_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 ResourceV1Api.replace_namespaced_resource_claim_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 ResourceV1Api.replace_namespaced_resource_claim_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 ResourceV1Api.replace_namespaced_resource_claim_status" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.replace_namespaced_resource_claim_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: ResourceV1Api#replace_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_resource_claim_template(name, namespace, body, opts = {}) ⇒ V1ResourceClaimTemplate
replace the specified ResourceClaimTemplate
2730 2731 2732 2733 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2730 def replace_namespaced_resource_claim_template(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1ResourceClaimTemplate, Integer, Hash)>
replace the specified ResourceClaimTemplate
2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2745 def replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim_template ...' 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 ResourceV1Api.replace_namespaced_resource_claim_template" 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 ResourceV1Api.replace_namespaced_resource_claim_template" 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 ResourceV1Api.replace_namespaced_resource_claim_template" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{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] || 'V1ResourceClaimTemplate' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.replace_namespaced_resource_claim_template", :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: ResourceV1Api#replace_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(ResourceV1ResourceClaim, Integer, Hash)>
replace the specified ResourceClaim
2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2575 def replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim ...' 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 ResourceV1Api.replace_namespaced_resource_claim" 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 ResourceV1Api.replace_namespaced_resource_claim" 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 ResourceV1Api.replace_namespaced_resource_claim" end # resource path local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{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] || 'ResourceV1ResourceClaim' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.replace_namespaced_resource_claim", :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: ResourceV1Api#replace_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_resource_slice(name, body, opts = {}) ⇒ V1ResourceSlice
replace the specified ResourceSlice
2814 2815 2816 2817 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2814 def replace_resource_slice(name, body, opts = {}) data, _status_code, _headers = replace_resource_slice_with_http_info(name, body, opts) data end |
#replace_resource_slice_with_http_info(name, body, opts = {}) ⇒ Array<(V1ResourceSlice, Integer, Hash)>
replace the specified ResourceSlice
2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 |
# File 'lib/kubernetes/api/resource_v1_api.rb', line 2828 def replace_resource_slice_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_resource_slice ...' 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 ResourceV1Api.replace_resource_slice" 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 ResourceV1Api.replace_resource_slice" end # resource path local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{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] || 'V1ResourceSlice' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"ResourceV1Api.replace_resource_slice", :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: ResourceV1Api#replace_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |