Class: Kubernetes::RbacAuthorizationV1Api
- Inherits:
-
Object
- Object
- Kubernetes::RbacAuthorizationV1Api
- Defined in:
- lib/kubernetes/api/rbac_authorization_v1_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_cluster_role(body, opts = {}) ⇒ V1ClusterRole
create a ClusterRole.
-
#create_cluster_role_binding(body, opts = {}) ⇒ V1ClusterRoleBinding
create a ClusterRoleBinding.
-
#create_cluster_role_binding_with_http_info(body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
create a ClusterRoleBinding.
-
#create_cluster_role_with_http_info(body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
create a ClusterRole.
-
#create_namespaced_role(namespace, body, opts = {}) ⇒ V1Role
create a Role.
-
#create_namespaced_role_binding(namespace, body, opts = {}) ⇒ V1RoleBinding
create a RoleBinding.
-
#create_namespaced_role_binding_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
create a RoleBinding.
-
#create_namespaced_role_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
create a Role.
-
#delete_cluster_role(name, opts = {}) ⇒ V1Status
delete a ClusterRole.
-
#delete_cluster_role_binding(name, opts = {}) ⇒ V1Status
delete a ClusterRoleBinding.
-
#delete_cluster_role_binding_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterRoleBinding.
-
#delete_cluster_role_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterRole.
-
#delete_collection_cluster_role(opts = {}) ⇒ V1Status
delete collection of ClusterRole.
-
#delete_collection_cluster_role_binding(opts = {}) ⇒ V1Status
delete collection of ClusterRoleBinding.
-
#delete_collection_cluster_role_binding_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterRoleBinding.
-
#delete_collection_cluster_role_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterRole.
-
#delete_collection_namespaced_role(namespace, opts = {}) ⇒ V1Status
delete collection of Role.
-
#delete_collection_namespaced_role_binding(namespace, opts = {}) ⇒ V1Status
delete collection of RoleBinding.
-
#delete_collection_namespaced_role_binding_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of RoleBinding.
-
#delete_collection_namespaced_role_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of Role.
-
#delete_namespaced_role(name, namespace, opts = {}) ⇒ V1Status
delete a Role.
-
#delete_namespaced_role_binding(name, namespace, opts = {}) ⇒ V1Status
delete a RoleBinding.
-
#delete_namespaced_role_binding_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a RoleBinding.
-
#delete_namespaced_role_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a Role.
-
#get_api_resources_get_apis_rbac_authorization_k8s_io_v1(opts = {}) ⇒ V1APIResourceList
get available resources.
-
#get_api_resources_get_apis_rbac_authorization_k8s_io_v1_with_http_info(opts = {}) ⇒ Array<(V1APIResourceList, Integer, Hash)>
get available resources.
-
#initialize(api_client = ApiClient.default) ⇒ RbacAuthorizationV1Api
constructor
A new instance of RbacAuthorizationV1Api.
-
#list_cluster_role(opts = {}) ⇒ V1ClusterRoleList
list or watch objects of kind ClusterRole.
-
#list_cluster_role_binding(opts = {}) ⇒ V1ClusterRoleBindingList
list or watch objects of kind ClusterRoleBinding.
-
#list_cluster_role_binding_with_http_info(opts = {}) ⇒ Array<(V1ClusterRoleBindingList, Integer, Hash)>
list or watch objects of kind ClusterRoleBinding.
-
#list_cluster_role_with_http_info(opts = {}) ⇒ Array<(V1ClusterRoleList, Integer, Hash)>
list or watch objects of kind ClusterRole.
-
#list_namespaced_role(namespace, opts = {}) ⇒ V1RoleList
list or watch objects of kind Role.
-
#list_namespaced_role_binding(namespace, opts = {}) ⇒ V1RoleBindingList
list or watch objects of kind RoleBinding.
-
#list_namespaced_role_binding_with_http_info(namespace, opts = {}) ⇒ Array<(V1RoleBindingList, Integer, Hash)>
list or watch objects of kind RoleBinding.
-
#list_namespaced_role_with_http_info(namespace, opts = {}) ⇒ Array<(V1RoleList, Integer, Hash)>
list or watch objects of kind Role.
-
#list_role_binding_for_all_namespaces(opts = {}) ⇒ V1RoleBindingList
list or watch objects of kind RoleBinding.
-
#list_role_binding_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1RoleBindingList, Integer, Hash)>
list or watch objects of kind RoleBinding.
-
#list_role_for_all_namespaces(opts = {}) ⇒ V1RoleList
list or watch objects of kind Role.
-
#list_role_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1RoleList, Integer, Hash)>
list or watch objects of kind Role.
-
#patch_cluster_role(name, body, opts = {}) ⇒ V1ClusterRole
partially update the specified ClusterRole.
-
#patch_cluster_role_binding(name, body, opts = {}) ⇒ V1ClusterRoleBinding
partially update the specified ClusterRoleBinding.
-
#patch_cluster_role_binding_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
partially update the specified ClusterRoleBinding.
-
#patch_cluster_role_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
partially update the specified ClusterRole.
-
#patch_namespaced_role(name, namespace, body, opts = {}) ⇒ V1Role
partially update the specified Role.
-
#patch_namespaced_role_binding(name, namespace, body, opts = {}) ⇒ V1RoleBinding
partially update the specified RoleBinding.
-
#patch_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
partially update the specified RoleBinding.
-
#patch_namespaced_role_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
partially update the specified Role.
-
#read_cluster_role(name, opts = {}) ⇒ V1ClusterRole
read the specified ClusterRole.
-
#read_cluster_role_binding(name, opts = {}) ⇒ V1ClusterRoleBinding
read the specified ClusterRoleBinding.
-
#read_cluster_role_binding_with_http_info(name, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
read the specified ClusterRoleBinding.
-
#read_cluster_role_with_http_info(name, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
read the specified ClusterRole.
-
#read_namespaced_role(name, namespace, opts = {}) ⇒ V1Role
read the specified Role.
-
#read_namespaced_role_binding(name, namespace, opts = {}) ⇒ V1RoleBinding
read the specified RoleBinding.
-
#read_namespaced_role_binding_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
read the specified RoleBinding.
-
#read_namespaced_role_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
read the specified Role.
-
#replace_cluster_role(name, body, opts = {}) ⇒ V1ClusterRole
replace the specified ClusterRole.
-
#replace_cluster_role_binding(name, body, opts = {}) ⇒ V1ClusterRoleBinding
replace the specified ClusterRoleBinding.
-
#replace_cluster_role_binding_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
replace the specified ClusterRoleBinding.
-
#replace_cluster_role_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
replace the specified ClusterRole.
-
#replace_namespaced_role(name, namespace, body, opts = {}) ⇒ V1Role
replace the specified Role.
-
#replace_namespaced_role_binding(name, namespace, body, opts = {}) ⇒ V1RoleBinding
replace the specified RoleBinding.
-
#replace_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
replace the specified RoleBinding.
-
#replace_namespaced_role_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
replace the specified Role.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ RbacAuthorizationV1Api
Returns a new instance of RbacAuthorizationV1Api.
19 20 21 |
# File 'lib/kubernetes/api/rbac_authorization_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/rbac_authorization_v1_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_cluster_role(body, opts = {}) ⇒ V1ClusterRole
create a ClusterRole
30 31 32 33 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 30 def create_cluster_role(body, opts = {}) data, _status_code, _headers = create_cluster_role_with_http_info(body, opts) data end |
#create_cluster_role_binding(body, opts = {}) ⇒ V1ClusterRoleBinding
create a ClusterRoleBinding
103 104 105 106 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 103 def create_cluster_role_binding(body, opts = {}) data, _status_code, _headers = create_cluster_role_binding_with_http_info(body, opts) data end |
#create_cluster_role_binding_with_http_info(body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
create a ClusterRoleBinding
116 117 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 116 def create_cluster_role_binding_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_cluster_role_binding ...' 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 RbacAuthorizationV1Api.create_cluster_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings' # 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] || 'V1ClusterRoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.create_cluster_role_binding", :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: RbacAuthorizationV1Api#create_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_cluster_role_with_http_info(body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
create a ClusterRole
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/rbac_authorization_v1_api.rb', line 43 def create_cluster_role_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_cluster_role ...' 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 RbacAuthorizationV1Api.create_cluster_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles' # 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] || 'V1ClusterRole' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.create_cluster_role", :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: RbacAuthorizationV1Api#create_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_role(namespace, body, opts = {}) ⇒ V1Role
create a Role
177 178 179 180 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 177 def create_namespaced_role(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_role_with_http_info(namespace, body, opts) data end |
#create_namespaced_role_binding(namespace, body, opts = {}) ⇒ V1RoleBinding
create a RoleBinding
256 257 258 259 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 256 def create_namespaced_role_binding(namespace, body, opts = {}) data, _status_code, _headers = create_namespaced_role_binding_with_http_info(namespace, body, opts) data end |
#create_namespaced_role_binding_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
create a RoleBinding
270 271 272 273 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/rbac_authorization_v1_api.rb', line 270 def create_namespaced_role_binding_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.create_namespaced_role_binding" 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 RbacAuthorizationV1Api.create_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.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] || 'V1RoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.create_namespaced_role_binding", :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: RbacAuthorizationV1Api#create_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_namespaced_role_with_http_info(namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
create a Role
191 192 193 194 195 196 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 191 def create_namespaced_role_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.create_namespaced_role ...' 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 RbacAuthorizationV1Api.create_namespaced_role" 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 RbacAuthorizationV1Api.create_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.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] || 'V1Role' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.create_namespaced_role", :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: RbacAuthorizationV1Api#create_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_cluster_role(name, opts = {}) ⇒ V1Status
delete a ClusterRole
337 338 339 340 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 337 def delete_cluster_role(name, opts = {}) data, _status_code, _headers = delete_cluster_role_with_http_info(name, opts) data end |
#delete_cluster_role_binding(name, opts = {}) ⇒ V1Status
delete a ClusterRoleBinding
418 419 420 421 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 418 def delete_cluster_role_binding(name, opts = {}) data, _status_code, _headers = delete_cluster_role_binding_with_http_info(name, opts) data end |
#delete_cluster_role_binding_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterRoleBinding
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 434 def delete_cluster_role_binding_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_cluster_role_binding ...' 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 RbacAuthorizationV1Api.delete_cluster_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) # return_type return_type = opts[:debug_return_type] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.delete_cluster_role_binding", :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: RbacAuthorizationV1Api#delete_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_cluster_role_with_http_info(name, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a ClusterRole
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 353 def delete_cluster_role_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_cluster_role ...' 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 RbacAuthorizationV1Api.delete_cluster_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) # return_type return_type = opts[:debug_return_type] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.delete_cluster_role", :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: RbacAuthorizationV1Api#delete_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_cluster_role(opts = {}) ⇒ V1Status
delete collection of ClusterRole
507 508 509 510 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 507 def delete_collection_cluster_role(opts = {}) data, _status_code, _headers = delete_collection_cluster_role_with_http_info(opts) data end |
#delete_collection_cluster_role_binding(opts = {}) ⇒ V1Status
delete collection of ClusterRoleBinding
609 610 611 612 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 609 def delete_collection_cluster_role_binding(opts = {}) data, _status_code, _headers = delete_collection_cluster_role_binding_with_http_info(opts) data end |
#delete_collection_cluster_role_binding_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterRoleBinding
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 633 def delete_collection_cluster_role_binding_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_cluster_role_binding ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings' # 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 => :"RbacAuthorizationV1Api.delete_collection_cluster_role_binding", :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: RbacAuthorizationV1Api#delete_collection_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_cluster_role_with_http_info(opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of ClusterRole
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 531 def delete_collection_cluster_role_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_cluster_role ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles' # 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 => :"RbacAuthorizationV1Api.delete_collection_cluster_role", :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: RbacAuthorizationV1Api#delete_collection_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_role(namespace, opts = {}) ⇒ V1Status
delete collection of Role
712 713 714 715 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 712 def delete_collection_namespaced_role(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_role_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_role_binding(namespace, opts = {}) ⇒ V1Status
delete collection of RoleBinding
820 821 822 823 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 820 def delete_collection_namespaced_role_binding(namespace, opts = {}) data, _status_code, _headers = delete_collection_namespaced_role_binding_with_http_info(namespace, opts) data end |
#delete_collection_namespaced_role_binding_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of RoleBinding
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 845 def delete_collection_namespaced_role_binding_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.delete_collection_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.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 => :"RbacAuthorizationV1Api.delete_collection_namespaced_role_binding", :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: RbacAuthorizationV1Api#delete_collection_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_collection_namespaced_role_with_http_info(namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete collection of Role
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 737 def delete_collection_namespaced_role_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_collection_namespaced_role ...' 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 RbacAuthorizationV1Api.delete_collection_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.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 => :"RbacAuthorizationV1Api.delete_collection_namespaced_role", :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: RbacAuthorizationV1Api#delete_collection_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_role(name, namespace, opts = {}) ⇒ V1Status
delete a Role
920 921 922 923 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 920 def delete_namespaced_role(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_role_with_http_info(name, namespace, opts) data end |
#delete_namespaced_role_binding(name, namespace, opts = {}) ⇒ V1Status
delete a RoleBinding
1007 1008 1009 1010 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1007 def delete_namespaced_role_binding(name, namespace, opts = {}) data, _status_code, _headers = delete_namespaced_role_binding_with_http_info(name, namespace, opts) data end |
#delete_namespaced_role_binding_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a RoleBinding
1024 1025 1026 1027 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/rbac_authorization_v1_api.rb', line 1024 def delete_namespaced_role_binding_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.delete_namespaced_role_binding" 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 RbacAuthorizationV1Api.delete_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) # return_type return_type = opts[:debug_return_type] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.delete_namespaced_role_binding", :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: RbacAuthorizationV1Api#delete_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_namespaced_role_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Status, Integer, Hash)>
delete a Role
937 938 939 940 941 942 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 937 def delete_namespaced_role_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.delete_namespaced_role ...' 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 RbacAuthorizationV1Api.delete_namespaced_role" 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 RbacAuthorizationV1Api.delete_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil? query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil? query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil? query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil? query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil? query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) # return_type return_type = opts[:debug_return_type] || 'V1Status' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.delete_namespaced_role", :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: RbacAuthorizationV1Api#delete_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_api_resources_get_apis_rbac_authorization_k8s_io_v1(opts = {}) ⇒ V1APIResourceList
get available resources
1085 1086 1087 1088 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1085 def (opts = {}) data, _status_code, _headers = (opts) data end |
#get_api_resources_get_apis_rbac_authorization_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/rbac_authorization_v1_api.rb', line 1093 def (opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.get_api_resources_get_apis_rbac_authorization_k8s_io_v1 ...' end # resource path local_var_path = '/apis/rbac.authorization.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 => :"RbacAuthorizationV1Api.get_api_resources_get_apis_rbac_authorization_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: RbacAuthorizationV1Api#get_api_resources_get_apis_rbac_authorization_k8s_io_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_cluster_role(opts = {}) ⇒ V1ClusterRoleList
list or watch objects of kind ClusterRole
1152 1153 1154 1155 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1152 def list_cluster_role(opts = {}) data, _status_code, _headers = list_cluster_role_with_http_info(opts) data end |
#list_cluster_role_binding(opts = {}) ⇒ V1ClusterRoleBindingList
list or watch objects of kind ClusterRoleBinding
1243 1244 1245 1246 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1243 def list_cluster_role_binding(opts = {}) data, _status_code, _headers = list_cluster_role_binding_with_http_info(opts) data end |
#list_cluster_role_binding_with_http_info(opts = {}) ⇒ Array<(V1ClusterRoleBindingList, Integer, Hash)>
list or watch objects of kind ClusterRoleBinding
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1263 def list_cluster_role_binding_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_cluster_role_binding ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings' # 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] || 'V1ClusterRoleBindingList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_cluster_role_binding", :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: RbacAuthorizationV1Api#list_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_cluster_role_with_http_info(opts = {}) ⇒ Array<(V1ClusterRoleList, Integer, Hash)>
list or watch objects of kind ClusterRole
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/rbac_authorization_v1_api.rb', line 1172 def list_cluster_role_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_cluster_role ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles' # 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] || 'V1ClusterRoleList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_cluster_role", :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: RbacAuthorizationV1Api#list_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_role(namespace, opts = {}) ⇒ V1RoleList
list or watch objects of kind Role
1335 1336 1337 1338 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1335 def list_namespaced_role(namespace, opts = {}) data, _status_code, _headers = list_namespaced_role_with_http_info(namespace, opts) data end |
#list_namespaced_role_binding(namespace, opts = {}) ⇒ V1RoleBindingList
list or watch objects of kind RoleBinding
1432 1433 1434 1435 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1432 def list_namespaced_role_binding(namespace, opts = {}) data, _status_code, _headers = list_namespaced_role_binding_with_http_info(namespace, opts) data end |
#list_namespaced_role_binding_with_http_info(namespace, opts = {}) ⇒ Array<(V1RoleBindingList, Integer, Hash)>
list or watch objects of kind RoleBinding
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1453 def list_namespaced_role_binding_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.list_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings'.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] || 'V1RoleBindingList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_namespaced_role_binding", :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: RbacAuthorizationV1Api#list_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_namespaced_role_with_http_info(namespace, opts = {}) ⇒ Array<(V1RoleList, Integer, Hash)>
list or watch objects of kind Role
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1356 def list_namespaced_role_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_namespaced_role ...' 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 RbacAuthorizationV1Api.list_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles'.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] || 'V1RoleList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_namespaced_role", :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: RbacAuthorizationV1Api#list_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_role_binding_for_all_namespaces(opts = {}) ⇒ V1RoleBindingList
list or watch objects of kind RoleBinding
1528 1529 1530 1531 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1528 def list_role_binding_for_all_namespaces(opts = {}) data, _status_code, _headers = list_role_binding_for_all_namespaces_with_http_info(opts) data end |
#list_role_binding_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1RoleBindingList, Integer, Hash)>
list or watch objects of kind RoleBinding
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/rbac_authorization_v1_api.rb', line 1548 def list_role_binding_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_role_binding_for_all_namespaces ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/rolebindings' # 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] || 'V1RoleBindingList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_role_binding_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: RbacAuthorizationV1Api#list_role_binding_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_role_for_all_namespaces(opts = {}) ⇒ V1RoleList
list or watch objects of kind Role
1619 1620 1621 1622 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1619 def list_role_for_all_namespaces(opts = {}) data, _status_code, _headers = list_role_for_all_namespaces_with_http_info(opts) data end |
#list_role_for_all_namespaces_with_http_info(opts = {}) ⇒ Array<(V1RoleList, Integer, Hash)>
list or watch objects of kind Role
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/rbac_authorization_v1_api.rb', line 1639 def list_role_for_all_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.list_role_for_all_namespaces ...' end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/roles' # 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] || 'V1RoleList' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.list_role_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: RbacAuthorizationV1Api#list_role_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_cluster_role(name, body, opts = {}) ⇒ V1ClusterRole
partially update the specified ClusterRole
1705 1706 1707 1708 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1705 def patch_cluster_role(name, body, opts = {}) data, _status_code, _headers = patch_cluster_role_with_http_info(name, body, opts) data end |
#patch_cluster_role_binding(name, body, opts = {}) ⇒ V1ClusterRoleBinding
partially update the specified ClusterRoleBinding
1789 1790 1791 1792 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1789 def patch_cluster_role_binding(name, body, opts = {}) data, _status_code, _headers = patch_cluster_role_binding_with_http_info(name, body, opts) data end |
#patch_cluster_role_binding_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
partially update the specified ClusterRoleBinding
1804 1805 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1804 def patch_cluster_role_binding_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_cluster_role_binding ...' 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 RbacAuthorizationV1Api.patch_cluster_role_binding" 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 RbacAuthorizationV1Api.patch_cluster_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{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] || 'V1ClusterRoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.patch_cluster_role_binding", :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: RbacAuthorizationV1Api#patch_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_cluster_role_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
partially update the specified ClusterRole
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/rbac_authorization_v1_api.rb', line 1720 def patch_cluster_role_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_cluster_role ...' 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 RbacAuthorizationV1Api.patch_cluster_role" 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 RbacAuthorizationV1Api.patch_cluster_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{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] || 'V1ClusterRole' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.patch_cluster_role", :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: RbacAuthorizationV1Api#patch_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_role(name, namespace, body, opts = {}) ⇒ V1Role
partially update the specified Role
1874 1875 1876 1877 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1874 def patch_namespaced_role(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_role_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_role_binding(name, namespace, body, opts = {}) ⇒ V1RoleBinding
partially update the specified RoleBinding
1964 1965 1966 1967 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1964 def patch_namespaced_role_binding(name, namespace, body, opts = {}) data, _status_code, _headers = patch_namespaced_role_binding_with_http_info(name, namespace, body, opts) data end |
#patch_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
partially update the specified RoleBinding
1980 1981 1982 1983 1984 1985 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1980 def patch_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.patch_namespaced_role_binding" 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 RbacAuthorizationV1Api.patch_namespaced_role_binding" 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 RbacAuthorizationV1Api.patch_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{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] || 'V1RoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.patch_namespaced_role_binding", :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: RbacAuthorizationV1Api#patch_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#patch_namespaced_role_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
partially update the specified Role
1890 1891 1892 1893 1894 1895 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 1890 def patch_namespaced_role_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.patch_namespaced_role ...' 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 RbacAuthorizationV1Api.patch_namespaced_role" 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 RbacAuthorizationV1Api.patch_namespaced_role" 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 RbacAuthorizationV1Api.patch_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{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] || 'V1Role' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.patch_namespaced_role", :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: RbacAuthorizationV1Api#patch_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_cluster_role(name, opts = {}) ⇒ V1ClusterRole
read the specified ClusterRole
2048 2049 2050 2051 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2048 def read_cluster_role(name, opts = {}) data, _status_code, _headers = read_cluster_role_with_http_info(name, opts) data end |
#read_cluster_role_binding(name, opts = {}) ⇒ V1ClusterRoleBinding
read the specified ClusterRoleBinding
2112 2113 2114 2115 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2112 def read_cluster_role_binding(name, opts = {}) data, _status_code, _headers = read_cluster_role_binding_with_http_info(name, opts) data end |
#read_cluster_role_binding_with_http_info(name, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
read the specified ClusterRoleBinding
2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2122 def read_cluster_role_binding_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_cluster_role_binding ...' 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 RbacAuthorizationV1Api.read_cluster_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{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] || 'V1ClusterRoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.read_cluster_role_binding", :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: RbacAuthorizationV1Api#read_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_cluster_role_with_http_info(name, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
read the specified ClusterRole
2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2058 def read_cluster_role_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_cluster_role ...' 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 RbacAuthorizationV1Api.read_cluster_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{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] || 'V1ClusterRole' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.read_cluster_role", :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: RbacAuthorizationV1Api#read_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_role(name, namespace, opts = {}) ⇒ V1Role
read the specified Role
2177 2178 2179 2180 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2177 def read_namespaced_role(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_role_with_http_info(name, namespace, opts) data end |
#read_namespaced_role_binding(name, namespace, opts = {}) ⇒ V1RoleBinding
read the specified RoleBinding
2247 2248 2249 2250 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2247 def read_namespaced_role_binding(name, namespace, opts = {}) data, _status_code, _headers = read_namespaced_role_binding_with_http_info(name, namespace, opts) data end |
#read_namespaced_role_binding_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
read the specified RoleBinding
2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2258 def read_namespaced_role_binding_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.read_namespaced_role_binding" 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 RbacAuthorizationV1Api.read_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{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] || 'V1RoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.read_namespaced_role_binding", :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: RbacAuthorizationV1Api#read_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read_namespaced_role_with_http_info(name, namespace, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
read the specified Role
2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2188 def read_namespaced_role_with_http_info(name, namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.read_namespaced_role ...' 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 RbacAuthorizationV1Api.read_namespaced_role" 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 RbacAuthorizationV1Api.read_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{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] || 'V1Role' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.read_namespaced_role", :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: RbacAuthorizationV1Api#read_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_cluster_role(name, body, opts = {}) ⇒ V1ClusterRole
replace the specified ClusterRole
2320 2321 2322 2323 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2320 def replace_cluster_role(name, body, opts = {}) data, _status_code, _headers = replace_cluster_role_with_http_info(name, body, opts) data end |
#replace_cluster_role_binding(name, body, opts = {}) ⇒ V1ClusterRoleBinding
replace the specified ClusterRoleBinding
2399 2400 2401 2402 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2399 def replace_cluster_role_binding(name, body, opts = {}) data, _status_code, _headers = replace_cluster_role_binding_with_http_info(name, body, opts) data end |
#replace_cluster_role_binding_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRoleBinding, Integer, Hash)>
replace the specified ClusterRoleBinding
2413 2414 2415 2416 2417 2418 2419 2420 2421 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2413 def replace_cluster_role_binding_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_cluster_role_binding ...' 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 RbacAuthorizationV1Api.replace_cluster_role_binding" 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 RbacAuthorizationV1Api.replace_cluster_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{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] || 'V1ClusterRoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.replace_cluster_role_binding", :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: RbacAuthorizationV1Api#replace_cluster_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_cluster_role_with_http_info(name, body, opts = {}) ⇒ Array<(V1ClusterRole, Integer, Hash)>
replace the specified ClusterRole
2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 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 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2334 def replace_cluster_role_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_cluster_role ...' 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 RbacAuthorizationV1Api.replace_cluster_role" 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 RbacAuthorizationV1Api.replace_cluster_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/clusterroles/{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] || 'V1ClusterRole' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.replace_cluster_role", :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: RbacAuthorizationV1Api#replace_cluster_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_role(name, namespace, body, opts = {}) ⇒ V1Role
replace the specified Role
2479 2480 2481 2482 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2479 def replace_namespaced_role(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_role_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_role_binding(name, namespace, body, opts = {}) ⇒ V1RoleBinding
replace the specified RoleBinding
2564 2565 2566 2567 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2564 def replace_namespaced_role_binding(name, namespace, body, opts = {}) data, _status_code, _headers = replace_namespaced_role_binding_with_http_info(name, namespace, body, opts) data end |
#replace_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1RoleBinding, Integer, Hash)>
replace the specified RoleBinding
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 2634 2635 2636 2637 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2579 def replace_namespaced_role_binding_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_namespaced_role_binding ...' 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 RbacAuthorizationV1Api.replace_namespaced_role_binding" 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 RbacAuthorizationV1Api.replace_namespaced_role_binding" 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 RbacAuthorizationV1Api.replace_namespaced_role_binding" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{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] || 'V1RoleBinding' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.replace_namespaced_role_binding", :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: RbacAuthorizationV1Api#replace_namespaced_role_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#replace_namespaced_role_with_http_info(name, namespace, body, opts = {}) ⇒ Array<(V1Role, Integer, Hash)>
replace the specified Role
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 2549 2550 2551 2552 |
# File 'lib/kubernetes/api/rbac_authorization_v1_api.rb', line 2494 def replace_namespaced_role_with_http_info(name, namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RbacAuthorizationV1Api.replace_namespaced_role ...' 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 RbacAuthorizationV1Api.replace_namespaced_role" 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 RbacAuthorizationV1Api.replace_namespaced_role" 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 RbacAuthorizationV1Api.replace_namespaced_role" end # resource path local_var_path = '/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{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] || 'V1Role' # auth_names auth_names = opts[:debug_auth_names] || ['BearerToken'] = opts.merge( :operation => :"RbacAuthorizationV1Api.replace_namespaced_role", :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: RbacAuthorizationV1Api#replace_namespaced_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |