Skip to content

Commit 90a9052

Browse files
committed
generated API change
1 parent cef4c9c commit 90a9052

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed

kubernetes/docs/CustomObjectsApi.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**delete_collection_cluster_custom_object**](CustomObjectsApi.md#delete_collection_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} |
1111
[**delete_collection_namespaced_custom_object**](CustomObjectsApi.md#delete_collection_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} |
1212
[**delete_namespaced_custom_object**](CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
13+
[**get_api_resources**](CustomObjectsApi.md#get_api_resources) | **GET** /apis/{group}/{version} |
1314
[**get_cluster_custom_object**](CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} |
1415
[**get_cluster_custom_object_scale**](CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale |
1516
[**get_cluster_custom_object_status**](CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status |
@@ -516,6 +517,73 @@ Name | Type | Description | Notes
516517

517518
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
518519

520+
# **get_api_resources**
521+
> V1APIResourceList get_api_resources(group, version)
522+
523+
524+
525+
get available resources
526+
527+
### Example
528+
529+
* Api Key Authentication (BearerToken):
530+
```python
531+
from __future__ import print_function
532+
import time
533+
import kubernetes.client
534+
from kubernetes.client.rest import ApiException
535+
from pprint import pprint
536+
configuration = kubernetes.client.Configuration()
537+
# Configure API key authorization: BearerToken
538+
configuration.api_key['authorization'] = 'YOUR_API_KEY'
539+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
540+
# configuration.api_key_prefix['authorization'] = 'Bearer'
541+
542+
# Defining host is optional and default to http://localhost
543+
configuration.host = "http://localhost"
544+
545+
# Enter a context with an instance of the API kubernetes.client
546+
with kubernetes.client.ApiClient(configuration) as api_client:
547+
# Create an instance of the API class
548+
api_instance = kubernetes.client.CustomObjectsApi(api_client)
549+
group = 'group_example' # str | The custom resource's group name
550+
version = 'version_example' # str | The custom resource's version
551+
552+
try:
553+
api_response = api_instance.get_api_resources(group, version)
554+
pprint(api_response)
555+
except ApiException as e:
556+
print("Exception when calling CustomObjectsApi->get_api_resources: %s\n" % e)
557+
```
558+
559+
### Parameters
560+
561+
Name | Type | Description | Notes
562+
------------- | ------------- | ------------- | -------------
563+
**group** | **str**| The custom resource's group name |
564+
**version** | **str**| The custom resource's version |
565+
566+
### Return type
567+
568+
[**V1APIResourceList**](V1APIResourceList.md)
569+
570+
### Authorization
571+
572+
[BearerToken](../README.md#BearerToken)
573+
574+
### HTTP request headers
575+
576+
- **Content-Type**: Not defined
577+
- **Accept**: application/json
578+
579+
### HTTP response details
580+
| Status code | Description | Response headers |
581+
|-------------|-------------|------------------|
582+
**200** | OK | - |
583+
**401** | Unauthorized | - |
584+
585+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
586+
519587
# **get_cluster_custom_object**
520588
> object get_cluster_custom_object(group, version, plural, name)
521589

scripts/swagger.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76815,6 +76815,51 @@
7681576815
]
7681676816
}
7681776817
},
76818+
"/apis/{group}/{version}": {
76819+
"parameters": [
76820+
{
76821+
"name": "group",
76822+
"in": "path",
76823+
"required": true,
76824+
"description": "The custom resource's group name",
76825+
"type": "string"
76826+
},
76827+
{
76828+
"name": "version",
76829+
"in": "path",
76830+
"required": true,
76831+
"description": "The custom resource's version",
76832+
"type": "string"
76833+
}
76834+
],
76835+
"get": {
76836+
"operationId": "getAPIResources",
76837+
"description": "get available resources",
76838+
"tags": [
76839+
"custom_objects"
76840+
],
76841+
"consumes": [
76842+
"*/*"
76843+
],
76844+
"produces": [
76845+
"application/json"
76846+
],
76847+
"schemes": [
76848+
"https"
76849+
],
76850+
"responses": {
76851+
"200": {
76852+
"description": "OK",
76853+
"schema": {
76854+
"$ref": "#/definitions/v1.APIResourceList"
76855+
}
76856+
},
76857+
"401": {
76858+
"description": "Unauthorized"
76859+
}
76860+
}
76861+
}
76862+
},
7681876863
"/apis/{group}/{version}/{plural}": {
7681976864
"parameters": [
7682076865
{

0 commit comments

Comments
 (0)